Repository navigation
fix: pin GitHub Actions to commit SHAs - #2016
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2016 +/- ##
=======================================
Coverage 87.18% 87.18%
=======================================
Files 143 143
Lines 5539 5539
=======================================
Hits 4829 4829
Misses 423 423
Partials 287 287 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Pin all GitHub Actions references to full 40-character commit SHAs instead of mutable version tags, per the Kubernetes GitHub Actions security policy. Version tags are preserved as comments for readability. Signed-off-by: Terry Howe <[email protected]>
e1de5a8 to
f0e45dd
Compare
|
Hi @TerryHowe and @sajayantony, Just saw this change, but Dependabot is updating also the "pinned" version, for example: See: https://github.com/actions/checkout/releases/tag/v6.0.2 and actions/checkout@de0fac2 So at the moment there is still no way to validate, what version is being used based on the Git tag. I think you should set for example: - name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2Dependabot will update both: so the Tag and the corresponding Hash. |
Summary
Actions pinned
actions/checkoutde0fac2e4500dabe0009e67214ff5f5447ce83ddactions/setup-go4b73464bb391d4059bd26b0524d20df3927bd417actions/staleb5d41d4e1d5dceea10e7104786b73624c18a190fgithub/codeql-action38697555549f1db7851b81482ff19f1fa5c4fedccodecov/codecov-actionb9fd7d16f6d7d1b5d2bec1a2887e65ceed900238golangci/golangci-lint-action1e7e51e771db61008b38414a730f564565cf7c20apache/skywalking-eyes61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1docker/login-actionb45d80f862d83dbcd57f89517bcf500b2ab88fb2anchore/sbom-actione22c389904149dbc22b58101806040fa8d37a610goreleaser/goreleaser-actionec59f474b9834571250b370d4735c50f8e2d1e29snapcore/action-build3bdaa03e1ba6bf59a65f84a751d943d549a54e79snapcore/action-publish214b86e5ca036ead1668c79afb81e550e6c54d40Test plan