[Backport 2.19] Pin GitHub Actions to commit SHAs (#12041)#12265
Merged
angle943 merged 1 commit intoJun 23, 2026
Merged
Conversation
…#12041) Backport of opensearch-project#12041 to 2.19. Pin every GitHub Actions `uses:` reference in the workflow files to a full commit SHA (with the version as a trailing comment) to harden against supply-chain tag-mutation attacks. Applied to the 8 workflow files present on 2.19 (68 references). Action versions are preserved as-is on this branch; SHAs for versions not on main (checkout v2/v3, setup-node v2/v3, setup-java v3, cache v3, download-artifact v4.1.7, cypress-io/github-action v2, and BigSamu/OpenSearch_Changelog_Workflow) were resolved from each action's upstream tag. Signed-off-by: Justin Kim <jungkm@amazon.com>
abbyhu2000
approved these changes
Jun 23, 2026
sumukhswamy
approved these changes
Jun 23, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 2.19 #12265 +/- ##
==========================================
- Coverage 61.12% 61.10% -0.02%
==========================================
Files 3815 3815
Lines 91567 91594 +27
Branches 14475 14484 +9
==========================================
Hits 55973 55973
- Misses 32030 32055 +25
- Partials 3564 3566 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #12041 to
2.19.What
Pins every GitHub Actions
uses:reference in the workflow files to a full commit SHA (with the version retained as a trailing comment), hardening CI against supply-chain tag-mutation attacks. This unblocks the 2.19 CI check that fails when actions are not pinned to SHAs.Why this is a manual port (not a clean cherry-pick)
2.19's workflows have diverged frommain:opensearch_changelog_workflow.yml, which main lacks — it is included here.So instead of cherry-picking, the pinning was applied directly to the 8 workflow files present on 2.19 (68 references total).
SHA sourcing
main, the exact SHAs from Pin GitHub Actions to commit SHAs #12041 are reused.actions/checkoutv2/v3,actions/setup-nodev2/v3,actions/setup-javav3,actions/cachev3,actions/download-artifactv4.1.7,cypress-io/github-actionv2, andBigSamu/OpenSearch_Changelog_Workflow1.0.0-alpha1.Testing
uses:reference across.github/workflows/is now SHA-pinned (0 remaining tag refs).