Commit f5bf17e
authored
Pin GitHub Action references to commit SHAs (#333)
## Summary
Pin all GitHub Action references to full commit SHAs instead of mutable
version tags to prevent supply chain attacks. This is a security best
practice recommended by [GitHub's security hardening
guide](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions).
Mutable version tags (e.g. `@v2`) can be moved to point to different
commits, meaning a compromised upstream action could execute malicious
code in our workflows. Pinning to commit SHAs ensures we always run the
exact code we've reviewed.
## Changes
| Old Reference | New Reference | Hash | Version |
|--------------|---------------|------|---------|
| actions/checkout@v4 |
actions/checkout@34e1148 |
34e114876b0b11c390a56381ad16ebd13914f8d5 |
[v4.3.1](https://github.com/actions/checkout/releases/tag/v4.3.1) |
| anthropics/claude-code-base-action@beta |
anthropics/claude-code-base-action@e8132bc
| e8132bc5e637a42c27763fc757faa37e1ee43b34 |
[v0.063](http://github.com/anthropics/claude-code-base-action/releases/tag/v0.0.63)
|
| aws-actions/application-observability-for-aws@v1 |
aws-actions/application-observability-for-aws@95bb59e
| 95bb59e4538ba9ef746805d8a2bbbe531ba2a728 |
[v1.1.1](https://github.com/aws-actions/application-observability-for-aws/releases/tag/v1.1.1)
|
| aws-actions/configure-aws-credentials@v4 |
aws-actions/configure-aws-credentials@7474bc4
| 7474bc4690e29a8392af63c5b98e7449536d5c3a |
[v4.3.1](https://github.com/aws-actions/configure-aws-credentials/releases/tag/v4.3.1)
|
## Static Code Check
Added a `static-code-checks` job to `release-build.yml` that will fail
PRs introducing mutable GitHub Action version references.1 parent 07006fd commit f5bf17e
3 files changed
Lines changed: 43 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
0 commit comments