Allow maintainers to re-trigger lint validation via a recheck label - #3530
Merged
copybara-service[bot] merged 2 commits intoAug 11, 2026
Merged
Conversation
Workflow runs awaiting approval on fork PRs are deleted after 30 days; after that such PRs can no longer be validated or auto-labeled pull ready without a new pull_request event. Applying the recheck label fires a fresh validation run with the labeling maintainer as the triggering actor, and the Auto Label PR workflow removes the label after processing the result so it can be re-applied for another run.
mridul-sahu
force-pushed
the
lint-recheck-label
branch
from
August 11, 2026 15:58
66f8062 to
4060fb3
Compare
Pin actions to commit SHAs, disable credential persistence on checkout, and annotate the API-only workflow_run trigger as an accepted pattern.
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.
Description
Fork PRs from outside collaborators need a maintainer to approve their workflow runs, and GitHub deletes runs that sit awaiting approval for more than 30 days. Once that happens the PR has no way to run
Code Formatting & Lint Validationagain, so theAuto Label PRworkflow never fires and the PR can never receivepull ready(see #3414 and #3458, both of which aged out of their approval window and needed manual labeling).This adds a
labeledtrigger to the lint workflow, gated to a single label: applyingrecheckto a PR fires a fresh validation run on the PR delta, with the labeling maintainer as the triggering actor. The run stays in the unprivilegedpull_requestcontext (read-only token, no secrets), and every existing trigger path is unchanged.Auto Label PRremovesrecheckafter it processes the result, so the label can be re-applied whenever another run is needed.Requires the
rechecklabel to exist in the repo (create once under Issues → Labels).Type of change
Checklist
CHANGELOG.mdunder the[Unreleased]section (or the relevantcheckpoint//export/changelog).