Skip to content
Myr

ci: use full SHAs for github action versions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Phillip9587 · committed by Phillip Barta · parent eb6d125 · Browse files · 4 files+17 added−17 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Ref: https://github.com/expressjs/security-wg/issues/2

Diff stats

4 files+17 added−17 removed

  • other:+17 added−17 removed

4 files+17 added−17 removed

modified:.github/workflows/ci.yml+8 added-8 removed
modified:.github/workflows/codeql.yml+1 added-1 removed
modified:.github/workflows/legacy.yml+6 added-6 removed
34 unmodified lines
35 name: Node.js ${{ matrix.node-version }} - ${{matrix.os}}3637 runs-on: ${{ matrix.os }}38 steps:39 - uses: actions/checkout@v439 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.240 with:41 persist-credentials: false4243 - name: Setup Node.js ${{ matrix.node-version }}44 uses: actions/setup-node@v444 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.045 with:46 node-version: ${{ matrix.node-version }}4748 - name: Configure npm loglevel
13 unmodified lines
62 shell: bash63 run: npm run test-ci6465 - name: Upload code coverage66 uses: actions/upload-artifact@v466 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.267 with:68 name: coverage-node-${{ matrix.node-version }}-${{ matrix.os }}69 path: ./coverage/lcov.info70 retention-days: 1
4 unmodified lines
75 permissions:76 contents: read77 checks: write78 steps:79 - uses: actions/checkout@v479 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.28081 - name: Install lcov82 shell: bash83 run: sudo apt-get -y install lcov8485 - name: Collect coverage reports86 uses: actions/download-artifact@v486 uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.187 with:88 path: ./coverage89 pattern: coverage-node-*90
1 unmodified line
92 shell: bash93 run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info9495 - name: Upload coverage report96 uses: coverallsapp/github-action@v296 uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.697 with:98 file: ./lcov.info
modified:.github/workflows/scorecard.yml+2 added-2 removed
57 unmodified lines
5859 # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF60 # format to the repository Actions tab.61 - name: "Upload artifact"62 uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.062 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.263 with:64 name: SARIF file65 path: results.sarif66 retention-days: 5
1 unmodified line
68 # Upload the results to GitHub's code scanning dashboard.69 - name: "Upload to code-scanning"70 uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.1171 with:72 sarif_file: results.sarif72 sarif_file: results.sarif