[improve][ci] Check ASF action allowlist in preconditions - #26572
Merged
Conversation
lhotari
requested review from
Technoboy-,
dao-jun,
david-streamlio,
merlimat and
nodece
September 13, 2026 19:14
11 tasks
merlimat
approved these changes
Sep 13, 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.
Motivation
Action refs that are no longer on the ASF allowlist can cause GitHub Actions startup failures. Scan the repository's GitHub Actions configuration against the current allowlist and surface warnings for approved pins approaching expiry.
Modifications
Add
apache/infrastructure-actions/allowlist-checkat@mainimmediately after checkout in the existingpreconditionsjob. The action scans YAML files foruses:references and checks them against ASF's current approved allowlist, failing CI for unapproved action references. It also emits non-failing warnings when an approved pin expires within 30 days, giving advance notice to update it before approval expires. Use.github/**/*.y*mlto scan both.ymland.yamlfiles, including local action definitions.Run the check only when the pull request's base repository belongs to
apache, falling back to the current repository owner for scheduled and manual runs. Make checkout unconditional so those runs also have the files available to scan.Verifying this change
This change adds CI configuration without application tests.
.github, including all nine.yamlfiles.git diff --checkpasses.actionlint -shellcheck=''reports no new diagnostics relative to the existing six matrix-property errors../gradlew spotlessCheck checkstyleMain checkstyleTestpasses.Does this pull request potentially affect one of the following parts:
Adds the ASF allowlist-check CI action.