Repository navigation
fix: inline permission check in allow-ci job - #560
Merged
Merged
Conversation
auto-allow-ci adds the allow-ci label via GITHUB_TOKEN, but actions using GITHUB_TOKEN do not trigger new workflow runs. The label is present on the PR but test.yml only sees the initial opened event where the label doesn't exist yet, so allow-ci was always skipped. Inline the collaborator permission check directly into the allow-ci job. Label kept as fast-path for manual overrides on external PRs.
Collaborator
Author
|
Can't test this not on main... so just going to merge it. |
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
auto-allow-ciadds theallow-cilabel viaGITHUB_TOKEN, but actions usingGITHUB_TOKENdo not trigger new workflow runs. Thelabeledevent never fires fortest.yml, soallow-ciis always skipped on the first (and only) run.allow-cijob. When the label isn't present, the job checkscollaborators/{user}/permissionvia the API. The label is kept as a fast-path and manual override for external contributor PRs.Behavior matrix
allow-cilabelTest plan
allow-cilabel still works as manual override