Uh oh!
There was an error while loading. Please reload this page.
fix(wip-limit-check): drop permissions block — caused startup_failure - #37
Merged
Merged
Conversation
saadqbalforce-pushed
the
fix/wip-limit-check-drop-permissions-block
branch
from
May 4, 2026 13:18
6e53b85 to
38cb399CompareThe reusable workflow declared `permissions: pull-requests: write` on its job. Callers (e.g. tracebloc-py-package) don't grant that, and GitHub forbids called workflows from elevating GITHUB_TOKEN scope, so the workflow short-circuited to `startup_failure` before any step ran. The block is also unnecessary: this workflow doesn't use GITHUB_TOKEN at all — `gh pr comment` runs under `secrets.PROJECTS_KANBAN_TOKEN` (a PAT). Removing the block restores startup parity with the other reusable workflows in this repo, none of which declare a permissions block. Verified locally that py-package PR #117 hit startup_failure with the old YAML; all sibling reusables (set-pr-status, add-to-kanban, etc.) have no permissions block and run fine.
saadqbalforce-pushed
the
fix/wip-limit-check-drop-permissions-block
branch
from
May 4, 2026 13:22
38cb399 to
bf7980dCompareUh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
The reusable workflow declared
permissions: pull-requests: writeon its job. Callers (e.g. `tracebloc-py-package`) don't grant that, and GitHub forbids called workflows from elevating `GITHUB_TOKEN` scope, so the workflow short-circuits to `startup_failure` before any step runs.The block is also unnecessary: this workflow doesn't use `GITHUB_TOKEN` at all — `gh pr comment` runs under `secrets.PROJECTS_KANBAN_TOKEN` (a PAT). Removing it restores startup parity with the other reusable workflows in this repo (`set-pr-status`, `add-to-kanban`, `auto-classify`, `kanban-closure-router`), none of which declare a permissions block.
Reproducer
tracebloc/tracebloc-py-package#117 → run 25170342114 →
conclusion: startup_failure, 0 jobs spawned.Test plan
🤖 Generated with Claude Code
Note
Low Risk
Low risk: removes an unnecessary
permissionsblock that was preventing the reusable workflow from starting when callers don’t grant elevatedGITHUB_TOKENscopes.Overview
Fixes the reusable
wip-limit-checkworkflow failing withstartup_failureby removing the job-levelpermissions: pull-requests: writedeclaration.This ensures the workflow runs under the existing PAT (
secrets.PROJECTS_KANBAN_TOKEN) without attempting to elevateGITHUB_TOKENpermissions in called workflows.Reviewed by Cursor Bugbot for commit bf7980d. Bugbot is set up for automated code reviews on this repo. Configure here.