Skip to content

Commit 8549a73

Browse files
korbinian90claude
andauthored
ci: pin GitHub Actions to commit SHAs (#260)
Pin every external `uses: owner/action@tag` in .github/workflows/ to a full 40-char commit SHA, keeping the version tag as a trailing comment so humans and Dependabot can still read the intended version. SHA pinning is the GitHub-recommended hardening for third-party actions: a moving tag can be repointed at malicious code, a commit SHA cannot. dependabot.yml already declares the github-actions ecosystem (weekly), so it will keep these pins current by bumping the SHA + comment together. No dependabot change needed. Local reusable-workflow ref (./.github/workflows/release_desktop.yml) is left as-is; only external references are pinned. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 222a5f2 commit 8549a73

13 files changed

Lines changed: 110 additions & 110 deletions

.github/workflows/build_pwa_preview.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,23 @@ jobs:
7979
# which is what reviewers see in the GitHub diff. Repository is implicit.
8080
- name: Checkout PR merge ref (pull_request)
8181
if: github.event_name == 'pull_request'
82-
uses: actions/checkout@v6
82+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
8383
with:
8484
persist-credentials: false
8585

8686
# workflow_dispatch: explicit head OID resolved from the PR. For fork PRs
8787
# this checks out the fork repo at the PR's head commit.
8888
- name: Checkout PR head (workflow_dispatch)
8989
if: github.event_name == 'workflow_dispatch'
90-
uses: actions/checkout@v6
90+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
9191
with:
9292
repository: ${{ steps.pr.outputs.repo }}
9393
ref: ${{ steps.pr.outputs.ref }}
9494
persist-credentials: false
9595

96-
- uses: pnpm/action-setup@v6
96+
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6
9797

98-
- uses: actions/setup-node@v6
98+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
9999
with:
100100
node-version: '22'
101101
cache: 'pnpm'
@@ -134,7 +134,7 @@ jobs:
134134
EOF
135135
136136
- name: Upload build artifact
137-
uses: actions/upload-artifact@v7
137+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
138138
with:
139139
name: pwa-preview
140140
path: apps/pwa/build

0 commit comments

Comments
 (0)