René's URL Explorer Experiment


Title: Consider workflow scope or user-escalation pattern for merging PRs that modify workflow files · Issue #1815 · github/github-mcp-server · GitHub

Open Graph Title: Consider workflow scope or user-escalation pattern for merging PRs that modify workflow files · Issue #1815 · github/github-mcp-server

X Title: Consider workflow scope or user-escalation pattern for merging PRs that modify workflow files · Issue #1815 · github/github-mcp-server

Description: Problem When merging PRs that modify .github/workflows/ files, the GitHub API requires the workflow OAuth scope. Without it, merge attempts fail with HTTP 403: Resource not accessible by integration The GitHub MCP Server currently doesn'...

Open Graph Description: Problem When merging PRs that modify .github/workflows/ files, the GitHub API requires the workflow OAuth scope. Without it, merge attempts fail with HTTP 403: Resource not accessible by integratio...

X Description: Problem When merging PRs that modify .github/workflows/ files, the GitHub API requires the workflow OAuth scope. Without it, merge attempts fail with HTTP 403: Resource not accessible by integratio...

Opengraph URL: https://github.com/github/github-mcp-server/issues/1815

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider workflow scope or user-escalation pattern for merging PRs that modify workflow files","articleBody":"## Problem\n\nWhen merging PRs that modify `.github/workflows/` files, the GitHub API requires the `workflow` OAuth scope. Without it, merge attempts fail with HTTP 403:\n\n```\nResource not accessible by integration\n```\n\nThe GitHub MCP Server currently doesn't have the `workflow` scope, causing silent failures when users try to merge Dependabot PRs that update GitHub Actions versions.\n\n## Investigation Findings\n\n### 1. `x-accepted-oauth-scopes` Header Does NOT Help\n\nTested via curl on PR #605 (modifies 4 workflow files) vs PR #609 (no workflow files):\n\n```bash\n# PR with workflow changes\ncurl -s -I \"https://api.github.com/repos/.../pulls/605/merge\"\nx-accepted-oauth-scopes:   # EMPTY\n\n# PR without workflow changes  \ncurl -s -I \"https://api.github.com/repos/.../pulls/609/merge\"\nx-accepted-oauth-scopes:   # ALSO EMPTY\n```\n\n**Both return empty `x-accepted-oauth-scopes`** - GitHub doesn't advertise the `workflow` scope requirement in advance via headers.\n\n### 2. Scope Enforcement is Content-Sensitive\n\nThe `workflow` scope is enforced at merge time based on **what files are being changed**, not declared in API metadata. The enforcement logic is roughly:\n\n```\nprotected_dirs = [\".github/workflows/\", \".github/workflows-lab/\"]\n\nif user is authenticating via OAuth app\n   and token does NOT have \"workflow\" scope\n   and any changed file starts with protected_dirs:\n      reject with 403\n```\n\n### 3. No Pre-flight Detection Possible via Headers\n\nThe only reliable way to detect this requirement is to **inspect PR files** before merge.\n\n## Proposed Solutions\n\n### Option A: Add `workflow` scope to GitHub MCP Server OAuth\n- Pros: Cleanest fix, full functionality\n- Cons: This is a powerful scope (can create/modify/delete workflows) - probably shouldn't be on by default\n\n### Option B: Pre-flight file inspection in scope challenge middleware (Recommended)\n\nSince the `workflow` scope is unique (content-sensitive rather than tool-based), add special handling in the scope challenge middleware:\n\n1. **Intercept merge operations** (`merge_pull_request`, `create_or_update_file`)\n2. **Check if user has `workflow` scope** - if yes, proceed normally\n3. **If no `workflow` scope, fetch PR files** via `GET /repos/{owner}/{repo}/pulls/{pull_number}/files`\n4. **Check paths** against `.github/workflows/` and `.github/workflows-lab/`\n5. **If workflow files detected** → return 401 with scope challenge:\n   ```\n   WWW-Authenticate: Bearer resource=\"https://api.github.com\", scope=\"workflow\"\n   ```\n6. **Otherwise** → proceed with normal merge\n\nThis is different from other scopes because:\n- Normal scopes: deterministic per-tool (`create_issue` → `repo` scope)\n- Workflow scope: content-sensitive (`merge_pull_request` → check files → maybe `workflow` scope)\n\n### Option C: Better error handling (Minimum viable)\n- Detect the 403 error pattern\n- Surface a clear message explaining why and how to resolve\n\n## Technical Context\n\n- MCP uses SSE streams - can't do OAuth re-auth mid-stream\n- `workflow` scope grants significant permissions (create/modify/delete workflows)\n- Common scenario: Dependabot bumping `actions/checkout@v5` → `v6`\n\n## Affected Use Cases\n\n1. Merging Dependabot PRs for GitHub Actions updates\n2. Any PR that touches `.github/workflows/*.yml` files\n3. Users trying to batch-merge security updates\n\n## References\n\n- [GitHub OAuth Scopes](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes)\n- RFC 9728: OAuth 2.0 Protected Resource Metadata","author":{"url":"https://github.com/SamMorrowDrums","@type":"Person","name":"SamMorrowDrums"},"datePublished":"2026-01-15T13:29:29Z","url":"https://github.com/github/github-mcp-server/issues/1815"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b83c6974-fffc-25d5-0541-65dcc63b7e30
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBDCA:1DAC61:10C4A6B:1726970:6B06B5D9
html-safe-nonce1b8ad557f03a1063253658f8600d29d3bcd28a4eeb77ee9c2800c2954125f64e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRENBOjFEQUM2MToxMEM0QTZCOjE3MjY5NzA6NkIwNkI1RDkiLCJ2aXNpdG9yX2lkIjoiODMyMzY1MTM1MDIwMjU5NDc3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace3c84fcac2785e6bfc98599c2fcfbcc12e53bbec709377a129adfe6a113541ee
hovercard-subject-tagissue:3817578268
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/1815/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9a471cbbd84839174d770a25986c841710a591aa31f2a802b660de8be5f80ff9/github/github-mcp-server/issues/1815
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9a471cbbd84839174d770a25986c841710a591aa31f2a802b660de8be5f80ff9/github/github-mcp-server/issues/1815
og:image:altProblem When merging PRs that modify .github/workflows/ files, the GitHub API requires the workflow OAuth scope. Without it, merge attempts fail with HTTP 403: Resource not accessible by integratio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSamMorrowDrums
hostnamegithub.com
expected-hostnamegithub.com
None9b2b1f32e21f9e529372294897d423fa443a20a3a37bafa95dec0f213469ebfc
turbo-cache-controlno-preview
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5402de66059e5821fab003de929c7056c92d863f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/1815#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F1815
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F1815
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/issues/1815
Reloadhttps://github.com/github/github-mcp-server/issues/1815
Reloadhttps://github.com/github/github-mcp-server/issues/1815
githubhttps://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Codehttps://github.com/github/github-mcp-server
Issues239 (239)https://github.com/github/github-mcp-server/issues
Pull requests228 (228)https://github.com/github/github-mcp-server/pulls
Discussionshttps://github.com/github/github-mcp-server/discussions
Actionshttps://github.com/github/github-mcp-server/actions
Security and quality2 (2)https://github.com/github/github-mcp-server/security
Insightshttps://github.com/github/github-mcp-server/insights
https://github.com/github/github-mcp-server
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/1815
New issuehttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/1815
#1825https://github.com/github/github-mcp-server/pull/1825
Consider workflow scope or user-escalation pattern for merging PRs that modify workflow fileshttps://github.com/github/github-mcp-server/issues/1815#top
#1825https://github.com/github/github-mcp-server/pull/1825
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
on Jan 15, 2026https://github.com/github/github-mcp-server/issues/1815#issue-3817578268
#605https://github.com/github/github-mcp-server/pull/605
#609https://github.com/github/github-mcp-server/pull/609
GitHub OAuth Scopeshttps://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes
https://github.com/Abishek-Newar
Abishek-Newarhttps://github.com/Abishek-Newar
on Jan 16, 2026https://github.com/github/github-mcp-server/issues/1815#issuecomment-3759718398
@SamMorrowDrumshttps://github.com/SamMorrowDrums
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
on Jan 16, 2026https://github.com/github/github-mcp-server/issues/1815#issuecomment-3759979059
@Abishek-Newarhttps://github.com/Abishek-Newar
https://github.com/Abishek-Newar
Abishek-Newarhttps://github.com/Abishek-Newar
on Jan 16, 2026https://github.com/github/github-mcp-server/issues/1815#issuecomment-3760135436
@SamMorrowDrumshttps://github.com/SamMorrowDrums
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
on Jan 16, 2026https://github.com/github/github-mcp-server/issues/1815#issuecomment-3761374544
Sign up for freehttps://github.com/signup?return_to=https://github.com/github/github-mcp-server/issues/1815
Sign in to commenthttps://github.com/login?return_to=https://github.com/github/github-mcp-server/issues/1815
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.