Commit f8007b8
authored
chore: pin GitHub Actions to commit SHAs (#175)
## Pin GitHub Actions to commit SHAs
GitHub Actions referenced by tag (e.g. `actions/checkout@v4`) use a
mutable pointer — the tag owner can move it to a different commit at any
time, including a malicious one. This is the attack vector used in the
tj-actions/changed-files incident (CVE-2025-30066).
Pinning to a full 40-character commit SHA makes the reference immutable.
The `# tag` comment preserves human readability so reviewers can tell
which version is pinned.
Important: a SHA can also originate from a forked repository. A
malicious actor can fork an action, push a compromised commit to the
fork, and the SHA will resolve — but it won't exist in the upstream
canonical repo. Each SHA in this PR was verified against the action's
canonical repository (not a fork).
### Changes
- `actions/checkout@v4` ->
`actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1`
- Version: v4.3.1 | Latest: v6.0.2 | Release age: 90d
- Commit:
actions/checkout@34e1148
- `actions/setup-node@v4` ->
`actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0`
- Version: v4.4.0 | Latest: v6.3.0 | Release age: 37d
- Commit:
actions/setup-node@49933ea
- `actions/create-github-app-token@v1` ->
`actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547
# v1.12.0`
- Version: v1.12.0 | Latest: v3.0.0 | Release age: 27d
- Commit:
actions/create-github-app-token@d72941d
- `peter-evans/repository-dispatch@v3` ->
`peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0
# v3`
- Version: v3 | Latest: v4.0.1 | Release age: 146d
- Commit:
peter-evans/repository-dispatch@ff45666
- `andresz1/size-limit-action@v1` ->
`andresz1/size-limit-action@e7493a72a44b113341c0cf6186ab49c17c4b65c1 #
v1.6.1`
- Version: v1.6.1 | Latest: v1.8.0 | Release age: 733d
- Commit:
andresz1/size-limit-action@e7493a7
- `peter-evans/create-pull-request@v7` ->
`peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676
# v7.0.11`
- Version: v7.0.11 | Latest: v8.1.0 | Release age: 78d
- Commit:
peter-evans/create-pull-request@22a9089
### Files modified
- `.github/workflows/publish.yml`
- `.github/workflows/size.yml`
- `.github/workflows/tests.yml`
- `.github/workflows/update-moc.yml`1 parent 4a82530 commit f8007b8
4 files changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments