Add workflow OAuth scope so MCP can manage .github/workflows/*.yml#2
Merged
Conversation
GitHub returns 404 on writes to .github/workflows/* without the workflow scope, even when repo is granted. Bump the default GITHUB_SCOPES fallback and docs; existing users still need to disconnect/reconnect to mint a token with the new scope. Fixes #1
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
workflowto the defaultGITHUB_SCOPESfallback insrc/github-oauth.tsso newly-minted GitHub tokens can create/update.github/workflows/*files (GitHub 404s writes to that path without the scope, even withrepogranted)..env.example,README.md, andCLAUDE.mdto reflect the new default and document whyworkflowis needed.Deployment note (manual, out of scope for this PR)
Per
CLAUDE.md, the VPS.envis not touched bynpm run deploy. After merge, someone needs to:workflowtoGITHUB_SCOPESin/opt/github-mcp-auth/.envon the VPS (or remove the var entirely to pick up this new default).systemctl restart github-mcp-auth.Fixes #1
Test plan
npm run buildpasses (strict TS, no errors)github:create_or_update_file(path=".github/workflows/foo.yml")no longer 404s