fix: remove invalid workflows permission from Claude workflow#42
fix: remove invalid workflows permission from Claude workflow#42thomasht86 merged 1 commit intomainfrom
Conversation
Remove `workflows: write` which is not a valid permission scope in GitHub Actions. Valid permissions are: actions, checks, contents, deployments, id-token, issues, packages, pages, pull-requests, security-events, statuses. Note: Modifying workflow files requires a PAT with `workflow` scope, not the built-in GITHUB_TOKEN. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PR Review: Fix Invalid Workflows PermissionSummaryThis PR correctly removes the invalid Code Quality: ✅ ExcellentStrengths:
Technical Analysis: ✅ CorrectValidation:
The PR description accurately states that modifying workflow files requires a PAT with Current State After Fix: permissions:
contents: write # ✅ Valid - for pushing to branches
pull-requests: write # ✅ Valid - for creating PRs
issues: write # ✅ Valid - for posting comments
id-token: write # ✅ Valid - for OIDC authentication
actions: read # ✅ Valid - for reading CI resultsPotential Issues:
|
Summary
workflows: writepermission that was causing workflow YAML syntax errorsChanges
1. Fix invalid permission in claude.yml
workflowsis not a valid permission scope in GitHub Actions. Valid permissions are:actions,checks,contents,deployments,id-token,issues,packages,pages,pull-requests,security-events,statuses.2. Add Python 3.9 to CI test matrix
Added
"3.9"to the python-version matrix in CI.yml to enable testing for Python 3.9.Note on Workflow File Modifications
Modifying workflow files (
.github/workflows/*) requires a Personal Access Token (PAT) withworkflowscope - the built-inGITHUB_TOKENcannot be granted this permission (GitHub security feature). The Claude Code Action's GitHub app doesn't currently support this.Sources
🤖 Generated with Claude Code