SEC-178: pin GitHub Action refs to full SHAs#35
Merged
Conversation
Pins all external actions in maven.yml, publish.yml, and test.yml to full commit SHAs of their v5/v6/v9 tags as of 2026-04-21. Required before the org-wide sha_pinning_required policy (rootlyhq/terraform-rootly#891) lands. SHAs: actions/checkout@v6 -> de0fac2e4500dabe0009e67214ff5f5447ce83dd actions/setup-java@v5 -> be666c2fcd27ec809703dec50e508c2fdc7f6654 actions/github-script@v9 -> 3a2844b7e9c422d3c10d287c895573f7108da1b3 Linear: SEC-178 (follow-up to SEC-89).
kwent
approved these changes
Apr 21, 2026
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.
Summary
Pins all external GitHub Actions in this repo to full 40-char commit SHAs. Required before the org-wide
sha_pinning_required = truepolicy (rootlyhq/terraform-rootly#891) lands — otherwise CI here fails validation on the next run after apply.Linear: SEC-178 (follow-up to SEC-89).
Changes
.github/workflows/maven.ymlactions/checkout@v6,actions/setup-java@v5.github/workflows/publish.ymlactions/checkout@v6,actions/setup-java@v5(×2),actions/github-script@v9.github/workflows/test.ymlactions/checkout@v6,actions/setup-java@v5All SHAs preserve the original tag as a trailing comment (Dependabot convention).
SHAs
actions/checkout@v6→de0fac2e4500dabe0009e67214ff5f5447ce83ddactions/setup-java@v5→be666c2fcd27ec809703dec50e508c2fdc7f6654actions/github-script@v9→3a2844b7e9c422d3c10d287c895573f7108da1b3Resolved via
gh api /repos/OWNER/REPO/commits/TAGon 2026-04-21.Test plan
test.ymlpasses on the Java 17 matrixmaven.ymlpasses on Java 17 and 21 matrix🤖 Generated with Claude Code