Skip to content

Correct the auto-merge token rationale comment - #27

Merged
bboe merged 1 commit into
mainfrom
fix-auto-merge-token-comment
Jul 26, 2026
Merged

Correct the auto-merge token rationale comment#27
bboe merged 1 commit into
mainfrom
fix-auto-merge-token-comment

Conversation

@bboe

@bboe bboe commented Jul 26, 2026

Copy link
Copy Markdown
Member

Comment-only change to the pre-commit_autoupdate reusable workflow; no behavior change.

The comment added in #26 claimed the app token is reused because GITHUB_TOKEN is not available to reusable workflows. That is false — reusable workflows do receive github.token.

The real reason is branch protection: main restricts pushes to the praw-dev-automation app (users: [], teams: []). GITHUB_TOKEN acts as github-actions[bot], which is not on that allowlist and therefore cannot complete the merge. The app token is the only identity that can.

Worth recording accurately, since the wrong rationale invites a future 'least privilege' swap to GITHUB_TOKEN that would silently break auto-merge.

The previous comment claimed GITHUB_TOKEN is unavailable to reusable
workflows, which is not true. The actual reason the app token is reused is
that branch protection on main restricts pushes to the praw-dev-automation
app, so github-actions[bot] cannot complete the merge.
@bboe
bboe merged commit 2cd4e01 into main Jul 26, 2026
3 checks passed
@bboe
bboe deleted the fix-auto-merge-token-comment branch July 26, 2026 17:20
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