Repository navigation
Merge, update-branch, workflow runs and review reads, behind opt-in allow-lists #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
antra-tess
wants to merge
2
commits into
main
Choose a base branch
from
merge-and-actions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,196
−68
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| - `github.merge` feature set: `merge_pull_request` (merge, squash or rebase, | ||
| at the head sha the caller read, optionally deleting the merged head branch | ||
| when it is nobody's base) and `update_branch`. Both act only on pull | ||
| requests into the bases `GITHUB_MERGE_BASE_ALLOW` names, which is empty by | ||
| default: granting the feature set alone writes nothing. Drafts, closed and | ||
| merged pull requests and a moved head are refused before GitHub is asked; | ||
| branch protection stays GitHub's. | ||
| - `github.actions` feature set: `list_workflow_runs`, `dispatch_workflow` and | ||
| `rerun_workflow_run`. Dispatch and re-run act only on the workflow files | ||
| `GITHUB_WORKFLOW_ALLOW` names (empty by default), and a dispatch runs only | ||
| on a base branch. Built for re-requesting a review from a workflow that | ||
| ignores comments from bots. | ||
| - `list_reviews` (`github.read`): the newest 50 reviews on a pull request and | ||
| how many there are in all, ending on the newest verdict. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| - **Operators:** `app-manifest.json` asks for `contents: write` instead of | ||
| `contents: read`. GitHub refuses `resolveReviewThread` to an App that cannot | ||
| write contents, so `resolve_thread` and `unresolve_thread` failed with | ||
| "Resource not accessible by integration" on an App made from the old | ||
| manifest. Raise the permission on the App's **Permissions** page and accept | ||
| it on the installation; add `actions: write` and `workflows: write` there | ||
| too if you enable `github.actions` or `github.merge`. |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Medium severity, documentation. 'Opt-in twice' is false in plain-MCP mode, where merge and actions tools need no grant.
The Security section says a host has to grant github.merge or github.actions and the operator has to set the allow-list ("Either alone does nothing"). But
GitHubMcplServer.listedTools(server.ts lines 633-640) offers the whole surface to a plain-MCP client, with no grant to narrow it. So once GITHUB_MERGE_BASE_ALLOW or GITHUB_WORKFLOW_ALLOW is set, every plain-MCP client can merge or dispatch without any host grant. Operators relying on the stated second fence would be surprised. Either gate these feature sets in plain MCP or correct the documentation.