Repository navigation
ci: pin every action to an ASF-approved SHA - #16308
Merged
Merged
Conversation
`gradle/actions/setup-gradle@50e97c2` (v6.1.0) is not on the ASF
allowlist, so every workflow that used it — CI, Code Style, End to End,
Coverage, RAT, Vulnerability Scan, the Groovy canary and the release
workflows — failed at startup before any job ran:
The action gradle/actions@50e97c2
is not allowed in apache/grails-core because all actions must be
from a repository owned by your enterprise, created by GitHub, or
match one of the patterns: ...
Move it to `9c971963` (v6.3.0), the current approved entry with no
expiry date. v6.1.1 is also approved but expires 2026-09-05.
Also, so the same class of failure does not come back:
- `aws-actions/configure-aws-credentials` → v6.2.3 (`e6de0542`). The
v6.2.0 pin it replaces expires from the allowlist on 2026-09-20.
- SHA-pin the three floating `actions/*` refs left in
`vulnerability-scan.yml` and the twelve `actions/cache@v4` refs in
`gradle.yml`, matching the versions already used everywhere else in
the repo. These are allowed by namespace, so they were not breaking
anything, but CLAUDE.md asks for SHA pins for supply-chain
consistency.
`apache/grails-github-actions/*@asf` is left on the branch ref
deliberately — it is the ASF-owned, intentionally floating pin.
Approved SHAs verified against
https://github.com/apache/infrastructure-actions/blob/main/actions.yml
jdaugherty
approved these changes
Sep 3, 2026
jdaugherty
left a comment
Contributor
There was a problem hiding this comment.
historically we have pinned the shas for github owned actions but itherwise if it runs i am good
✅ All tests passed ✅🏷️ Commit: ecb4a4d Learn more about TestLens at testlens.app/docs. |
matrei
approved these changes
Sep 3, 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.
Problem
Every workflow in this repo is currently failing at startup, before any job runs:
The
1Password/…entries at the front of that message are just the alphabetically-first patterns in the ASF allowlist — they are not the failing action. The failing action isgradle/actions/setup-gradlepinned to50e97c2(v6.1.0), which is not inapache/infrastructure-actions/actions.yml.Affected: CI, Code Style, Code Analysis, Coverage, End to End, Licensing (RAT), Vulnerability Scan, Groovy Snapshot Canary, and every release workflow.
Changes
gradle/actions/setup-gradle(29×)50e97c2v6.1.0 — not approved9c971963v6.3.0 — approved, no expiryaws-actions/configure-aws-credentialse7f100cfv6.2.0 — approved, expires 2026-09-20e6de0542v6.2.3 — approved, no expiryactions/cache(12×,gradle.yml)@v4floating0057852bv4.3.0actions/checkout(3×,vulnerability-scan.yml)@v6floatingde0fac2ev6.0.2actions/setup-java(2×,vulnerability-scan.yml)@v4floatingbe666c2fv5.2.0gradle/actions/setup-gradle@9c971963is v6.3.0, the newest approved entry and the only v6 entry with noexpires_at. v6.1.1 (5e2ebd06) is also approved but expires 2026-09-05, so pinning to it would have re-broken CI in two days.The
actions/*refs were allowed by namespace and were not breaking anything; they are pinned here for the supply-chain consistencyCLAUDE.mdasks for, using the same versions already in use elsewhere in the repo.apache/grails-github-actions/*@asfis deliberately left on the branch ref — that floating pin is intentional and ASF-owned.Verification
Every
uses:in.github/workflows/was checked againstactions.yml; all third-party actions now resolve to an approved SHA with no expiry date, and each SHA was confirmed against its upstream tag via the GitHub API. All workflow YAML parses.Note
8.0.xcarries the same unapproved50e97c2pin and is failing identically; it needs the same fix.