Skip to content

Commit 7b44e1d

Browse files
committed
ci: use full SHAs for github action versions
Ref: expressjs/security-wg#2
1 parent eb6d125 commit 7b44e1d

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.github/workflows/ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
name: Lint
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
- name: Setup Node.js
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
3434
with:
3535
node-version: 'lts/*'
3636

@@ -52,12 +52,12 @@ jobs:
5252

5353
runs-on: ${{ matrix.os }}
5454
steps:
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5656
with:
5757
persist-credentials: false
5858

5959
- name: Setup Node.js ${{ matrix.node-version }}
60-
uses: actions/setup-node@v4
60+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
6161
with:
6262
node-version: ${{ matrix.node-version }}
6363

@@ -79,7 +79,7 @@ jobs:
7979
run: npm run test-ci
8080

8181
- name: Upload code coverage
82-
uses: actions/upload-artifact@v4
82+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8383
with:
8484
name: coverage-node-${{ matrix.node-version }}-${{ matrix.os }}
8585
path: ./coverage/lcov.info
@@ -92,14 +92,14 @@ jobs:
9292
contents: read
9393
checks: write
9494
steps:
95-
- uses: actions/checkout@v4
95+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9696

9797
- name: Install lcov
9898
shell: bash
9999
run: sudo apt-get -y install lcov
100100

101101
- name: Collect coverage reports
102-
uses: actions/download-artifact@v4
102+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
103103
with:
104104
path: ./coverage
105105
pattern: coverage-node-*
@@ -109,6 +109,6 @@ jobs:
109109
run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info
110110

111111
- name: Upload coverage report
112-
uses: coverallsapp/github-action@v2
112+
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
113113
with:
114114
file: ./lcov.info

.github/workflows/codeql.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
- name: Checkout repository
37-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
37+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3838

3939
# Initializes the CodeQL tools for scanning.
4040
- name: Initialize CodeQL

.github/workflows/legacy.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636

3737
runs-on: ${{ matrix.os }}
3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4040
with:
4141
persist-credentials: false
4242

4343
- name: Setup Node.js ${{ matrix.node-version }}
44-
uses: actions/setup-node@v4
44+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
4545
with:
4646
node-version: ${{ matrix.node-version }}
4747

@@ -63,7 +63,7 @@ jobs:
6363
run: npm run test-ci
6464

6565
- name: Upload code coverage
66-
uses: actions/upload-artifact@v4
66+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6767
with:
6868
name: coverage-node-${{ matrix.node-version }}-${{ matrix.os }}
6969
path: ./coverage/lcov.info
@@ -76,14 +76,14 @@ jobs:
7676
contents: read
7777
checks: write
7878
steps:
79-
- uses: actions/checkout@v4
79+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8080

8181
- name: Install lcov
8282
shell: bash
8383
run: sudo apt-get -y install lcov
8484

8585
- name: Collect coverage reports
86-
uses: actions/download-artifact@v4
86+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
8787
with:
8888
path: ./coverage
8989
pattern: coverage-node-*
@@ -93,6 +93,6 @@ jobs:
9393
run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info
9494

9595
- name: Upload coverage report
96-
uses: coverallsapp/github-action@v2
96+
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
9797
with:
9898
file: ./lcov.info

.github/workflows/scorecard.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6060
# format to the repository Actions tab.
6161
- name: "Upload artifact"
62-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
62+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6363
with:
6464
name: SARIF file
6565
path: results.sarif
@@ -69,4 +69,4 @@ jobs:
6969
- name: "Upload to code-scanning"
7070
uses: github/codeql-action/upload-sarif@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
7171
with:
72-
sarif_file: results.sarif
72+
sarif_file: results.sarif

0 commit comments

Comments
 (0)