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
Provenance
- Commit
7b44e1d- Tree
21180b5- Author
Phillip9587 <barta.phillip@gmail.com>- Committer
Phillip Barta <barta.phillip@gmail.com>- Parent
eb6d125
4 files changed+17 added−17 removed
modified:.github/workflows/ci.yml+8 added-8 removed
26 unmodified lines2728293031313233333435363713 unmodified lines5152535455555657585960606162636413 unmodified lines787980818282838485864 unmodified lines9192939495959697989910010110210210310410510610710810911011111211211311426 unmodified lines lint: name: Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup Node.js uses: actions/setup-node@v4 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 with: node-version: 'lts/*'
- name: Install dependencies13 unmodified lines name: Node.js ${{ matrix.node-version }} - ${{matrix.os}}
runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false
- name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 with: node-version: ${{ matrix.node-version }}
- name: Configure npm loglevel13 unmodified lines shell: bash run: npm run test-ci
- name: Upload code coverage uses: actions/upload-artifact@v4 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: coverage-node-${{ matrix.node-version }}-${{ matrix.os }} path: ./coverage/lcov.info retention-days: 14 unmodified lines permissions: contents: read checks: write steps: - uses: actions/checkout@v4 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install lcov shell: bash run: sudo apt-get -y install lcov
- name: Collect coverage reports uses: actions/download-artifact@v4 uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1 with: path: ./coverage pattern: coverage-node-*
- name: Merge coverage reports shell: bash run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info
- name: Upload coverage report uses: coverallsapp/github-action@v2 uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6 with: file: ./lcov.infomodified:.github/workflows/codeql.yml+1 added-1 removed
32 unmodified lines3334353637373839404125 unmodified lines32 unmodified lines security-events: write
steps: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.1125 unmodified linesmodified:.github/workflows/legacy.yml+6 added-6 removed
34 unmodified lines35 name: Node.js ${{ matrix.node-version }} - ${{matrix.os}}36 37 runs-on: ${{ matrix.os }}38 steps:39- - uses: actions/checkout@v439+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.240 with:41 persist-credentials: false42 43 - 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 }}47 48 - name: Configure npm loglevel13 unmodified lines62 shell: bash63 run: npm run test-ci64 65 - 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: 14 unmodified lines75 permissions:76 contents: read77 checks: write78 steps:79- - uses: actions/checkout@v479+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.280 81 - name: Install lcov82 shell: bash83 run: sudo apt-get -y install lcov84 85 - 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 line92 shell: bash93 run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info94 95 - name: Upload coverage report96- uses: coverallsapp/github-action@v296+ uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.697 with:98 file: ./lcov.infomodified:.github/workflows/scorecard.yml+2 added-2 removed
57 unmodified lines58 59 # 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: 51 unmodified line68 # 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