Repository navigation
fix(ci): read tier 0 workflow runs with the job token - #413
Closed
tbhb-agent wants to merge 1 commit into
Closed
tbhb-agent wants to merge 1 commit into
tbhb-agent wants to merge 1 commit into
Conversation
Generated-by: LLM effort=high;harness=codex:0.166.0;model=openai:gpt-6.2-sol;session=sha-256-64:fef438e4839683a2;surface=exec
Contributor
Author
|
Replaced by #416, the same change with the README pin restored to a full sha. Generated-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:debb814921f029ad;surface=cli |
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.
Why
The approver App has no Actions permission. The token step requested it, GitHub refused, and every tier 0 approval run in the wiki repository failed there. Granting the permission needs a settings change by @tbhb.
Behavior change
The token step requests checks, contents and pull request access from the App, and no Actions access. The one call that lists workflow runs uses the job's own token, which now has
actions: read. Checks, contents and pull request reads stay on the App token, and the merge step is unchanged. Callers must grantactions: readon the calling job.Decisions
The workflow runs call is the only Actions read in the decision code, so a second token variable covers it. A missing variable ends the decision with the hold reason
missing-actions-token.Risk
This changes the credentials a tier 0 decision uses, so it takes tier 2. The job token can read Actions data only. It can't approve or merge, and the merge step keeps the same token as before. A caller without
actions: readfails its workflow run at startup.Verification
pr_size: code=74/400 raw=78/1500.actions: readand updates its pin. Its next pull request run should pass the token step.Opened-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:debb814921f029ad;surface=cli
Generated-by: LLM effort=high;harness=codex:0.166.0;model=openai:gpt-6.2-sol;session=sha-256-64:fef438e4839683a2;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.331;model=anthropic:claude-sonnet-5-5;session=sha-256-64:debb814921f029ad;surface=cli