Skip to content

Commit f52d745

Browse files
hyperpolymathclaude
andcommitted
SHA-pin GitHub Actions and upgrade deprecated checkout versions
- Upgrade actions/checkout from v2/v3 to SHA-pinned v4 - SHA-pin all unshelled action tags (pages, CodeQL, scorecard, rust-cache, upload/download-artifact, setup-node, cache) - Standardise scorecard-action to v2.4.0 - Fix setup-node@v6 → SHA-pinned v4 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d0e94c0 commit f52d745

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci-extended.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8989

9090
- name: Upload SBOM
91-
uses: actions/upload-artifact@v4
91+
uses: actions/upload-artifact@ea165f8d65b6db9a8b71b5c2d1a090c0daf9c8bb # v4
9292
with:
9393
name: sbom
9494
path: sbom.json
@@ -138,7 +138,7 @@ jobs:
138138
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
139139

140140
- name: Setup Node
141-
uses: actions/setup-node@v4
141+
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
142142
with:
143143
node-version: '20'
144144

@@ -204,6 +204,6 @@ jobs:
204204
output: 'trivy-results.sarif'
205205

206206
- name: Upload Trivy Results
207-
uses: github/codeql-action/upload-sarif@v3
207+
uses: github/codeql-action/upload-sarif@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
208208
with:
209209
sarif_file: 'trivy-results.sarif'

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
node-version: [16.x, 18.x, 20.x]
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2222

2323
- name: Use Node.js ${{ matrix.node-version }}
2424
uses: actions/setup-node@v3
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: ubuntu-latest
4646

4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
4949

5050
- name: Use Node.js
5151
uses: actions/setup-node@v3

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
# Initializes the CodeQL tools for scanning.
7272
- name: Initialize CodeQL
73-
uses: github/codeql-action/init@v4
73+
uses: github/codeql-action/init@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
7474
with:
7575
languages: ${{ matrix.language }}
7676
build-mode: ${{ matrix.build-mode }}
@@ -99,6 +99,6 @@ jobs:
9999
exit 1
100100
101101
- name: Perform CodeQL Analysis
102-
uses: github/codeql-action/analyze@v4
102+
uses: github/codeql-action/analyze@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
103103
with:
104104
category: "/language:${{matrix.language}}"

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1616

1717
- name: Setup Node.js
1818
uses: actions/setup-node@v3

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
persist-credentials: false
2121

2222
- name: Run Scorecard
23-
uses: ossf/scorecard-action@v2.3.1
23+
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
2424
with:
2525
results_file: results.sarif
2626
results_format: sarif
2727

2828
- name: Upload results
29-
uses: github/codeql-action/upload-sarif@v3
29+
uses: github/codeql-action/upload-sarif@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
3030
with:
3131
sarif_file: results.sarif

0 commit comments

Comments
 (0)