Skip to content

fix(ci): read tier 0 workflow runs with the job token - #413

Closed
tbhb-agent wants to merge 1 commit into
mainfrom
agent/r76-actions-token
Closed

tbhb-agent wants to merge 1 commit into
mainfrom
agent/r76-actions-token

Conversation

@tbhb-agent

Copy link
Copy Markdown
Contributor

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 grant actions: read on 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: read fails its workflow run at startup.

Verification

  • Branch coverage stays at 100 percent, including the new token routing. The size check reported pr_size: code=74/400 raw=78/1500.
  • Unit tests cover the Actions call with the job token, other calls with the App token, and the missing token hold.
  • After merge, the wiki caller adds actions: read and 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

Generated-by: LLM effort=high;harness=codex:0.166.0;model=openai:gpt-6.2-sol;session=sha-256-64:fef438e4839683a2;surface=exec
@tbhb-agent

Copy link
Copy Markdown
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

@tbhb-agent tbhb-agent closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant