fix(ci): remove restrictive permissions from bug-fix trigger workflow#2070
Merged
fix(ci): remove restrictive permissions from bug-fix trigger workflow#2070
Conversation
The caller workflow had `permissions: contents: read` which capped the reusable workflow's permissions, causing startup_failure. The reusable workflow needs write access to contents, pull-requests, issues, and id-token. These must be explicitly granted by the caller. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4594907 to
eb69a2d
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Removes a restrictive permissions block from the bug-fix-on-label workflow so the reusable bug-fix agent workflow can start without being capped by the caller’s token permissions.
Changes:
- Removed
permissions: contents: readfrom.github/workflows/bug-fix-on-label.ymlto avoid overriding/capping permissions required by the reusable workflow.
kantord
approved these changes
Apr 22, 2026
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
permissions: contents: readfrombug-fix-on-label.yml— it was overriding the reusable workflow's permissions, causingstartup_failurewhen the bug-fix agent tried to runThe reusable workflow
_bug-fix-agent.ymldefines its own permissions (contents: write,pull-requests: write,issues: write,id-token: write). The caller's restrictivepermissionsblock was capping them.Test plan
auto-fixlabel to a Bug issue and verify the workflow starts successfully🤖 Generated with Claude Code