Commit f102c62
authored
chore(ci): pin actions/{download,upload}-artifact to immutable SHAs (#14001)
security(ci): pin actions/{download,upload}-artifact to immutable SHAs
Replace floating tag references (download-artifact@v4.1.7, upload-artifact@v4)
with commit SHAs plus version comments, closing the supply-chain vector
exploited in the tj-actions/changed-files 2025 incident, where a tag
rewrite by a compromised maintainer propagates to every downstream
workflow that still resolves the tag at run time.
- actions/download-artifact -> 65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- actions/upload-artifact -> ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
Both SHAs verified against upstream:
gh api repos/actions/download-artifact/git/ref/tags/v4.1.7
gh api repos/actions/upload-artifact/git/ref/tags/v4.6.2
This is Phase 1 of a broader supply-chain hardening initiative motivated
by the TanStack 2026-05-11 npm compromise; remaining phases (npm OIDC
trusted publishing, optionalDependencies whitelist lint, ecosystem-
benchmark PR isolation, etc.) land in follow-up PRs.1 parent 07ab44c commit f102c62
8 files changed
Lines changed: 8 additions & 8 deletions
File tree
- .github
- actions/artifact
- download
- upload
- workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments