Skip to content

Commit b5b6c46

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 e4d247f commit b5b6c46

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: Setup Node.js
8181
if: needs.detect.outputs.has_nodejs == 'true'
82-
uses: actions/setup-node@v4
82+
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
8383
with:
8484
node-version: '20'
8585
cache: 'npm'
@@ -133,7 +133,7 @@ jobs:
133133

134134
- name: Setup Node.js
135135
if: needs.detect.outputs.has_nodejs == 'true'
136-
uses: actions/setup-node@v4
136+
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
137137
with:
138138
node-version: ${{ matrix.node-version }}
139139
cache: 'npm'
@@ -158,7 +158,7 @@ jobs:
158158
uses: dtolnay/rust-toolchain@stable
159159

160160
- name: Cache dependencies
161-
uses: actions/cache@v4
161+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
162162
with:
163163
path: |
164164
~/.npm
@@ -197,7 +197,7 @@ jobs:
197197

198198
- name: Setup Node.js
199199
if: needs.detect.outputs.has_nodejs == 'true'
200-
uses: actions/setup-node@v4
200+
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
201201
with:
202202
node-version: '20'
203203
cache: 'npm'
@@ -228,7 +228,7 @@ jobs:
228228
run: ci-scripts/build.sh --release
229229

230230
- name: Upload build artifacts
231-
uses: actions/upload-artifact@v4
231+
uses: actions/upload-artifact@ea165f8d65b6db9a8b71b5c2d1a090c0daf9c8bb # v4
232232
with:
233233
name: build-artifacts
234234
path: |
@@ -322,7 +322,7 @@ jobs:
322322
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
323323

324324
- name: Download artifacts
325-
uses: actions/download-artifact@v4
325+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
326326
with:
327327
name: build-artifacts
328328
path: dist/

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
# Setup for different languages
114114
- name: Setup Node.js
115115
if: matrix.language == 'javascript-typescript'
116-
uses: actions/setup-node@v4
116+
uses: actions/setup-node@49933ea5288caeca8642195f2b846b8bbe245a93 # v4
117117
with:
118118
node-version: '20'
119119

@@ -144,7 +144,7 @@ jobs:
144144

145145
# Initialize CodeQL
146146
- name: Initialize CodeQL
147-
uses: github/codeql-action/init@v4
147+
uses: github/codeql-action/init@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
148148
with:
149149
languages: ${{ matrix.language }}
150150
build-mode: ${{ matrix.build-mode }}
@@ -187,7 +187,7 @@ jobs:
187187
188188
# Perform CodeQL Analysis
189189
- name: Perform CodeQL Analysis
190-
uses: github/codeql-action/analyze@v4
190+
uses: github/codeql-action/analyze@6624720a57d4c312633c7b953db2f2da5bcb4c3a # v3
191191
with:
192192
category: "/language:${{ matrix.language }}"
193193
# Upload SARIF results

.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)