Title: lockdown mode fails to check permissions of custom bot accounts when retrieving pull request reviews · Issue #3777 · github/github-mcp-server · GitHub
Open Graph Title: lockdown mode fails to check permissions of custom bot accounts when retrieving pull request reviews · Issue #3777 · github/github-mcp-server
X Title: lockdown mode fails to check permissions of custom bot accounts when retrieving pull request reviews · Issue #3777 · github/github-mcp-server
Description: Describe the bug failed to check lockdown mode: failed to get user permission level: GET https://api.github.com/repos/ Open Graph Description: Describe the bug failed to check lockdown mode: failed to get user permission level: GET https://api.github.com/repos/ X Description: Describe the bug failed to check lockdown mode: failed to get user permission level: GET https://api.github.com/repos/<org>/<repo>/collaborators/<bot-user>/permission: 404 <bot...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3777
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lockdown mode fails to check permissions of custom bot accounts when retrieving pull request reviews","articleBody":"### Describe the bug\n\n`failed to check lockdown mode: failed to get user permission level: GET https://api.github.com/repos/\u003corg>/\u003crepo>/collaborators/\u003cbot-user>/permission: 404 \u003cbot-user> is not a user`\n\nNotably `\u003cbot-user>` is missing the `\u003cbot-user>[bot]` suffix from it's login, hence the permission check fails.\n\n### Affected version\n\n`https://api.githubcopilot.com/mcp/`\n\n### Steps to reproduce the behavior\n\n1. Create a PR with a PR review from a bot user\n2. Call the get_review_comments tool with lockdown\n3. See error\n\n### Expected vs actual behavior\n\nPermissions for bot users should check the original login `\u003cbot-user>[bot]`, without stripping the `[bot]` suffix.\n\n### Logs\n\nIt seems that the `GraphQL's Actor Login field differs from the Rest API's `user.login` field.\n\n```gql\ngh api graphql -F owner=':owner' -F repo=':repo' -F pr=123 -f query='\n query($owner: String!, $repo: String!, $pr: Int!) {\n repository(owner: $owner, name: $repo) {\n pullRequest(number: $pr) {\n reviewThreads(first: 100) {\n nodes {\n isResolved\n path\n line\n comments(first: 50) {\n nodes {\n id\n body\n createdAt\n author {\n login\n }\n }\n }\n }\n }\n }\n }\n }\n '\n```\n\nSo the bug comes from taking the graphql login, and checking it against the REST API.\nSimilar workarounds using `author { login __typename }` https://github.com/brave/pull-merge/pull/405, https://github.com/costajohnt/oss-autopilot/pull/1703, https://github.com/gptme/gptme-contrib/pull/1786\n","author":{"url":"https://github.com/MartinNowak","@type":"Person","name":"MartinNowak"},"datePublished":"2026-11-09T17:06:30Z","url":"https://github.com/github/github-mcp-server/issues/3777"}
react-profiling 0 react-import-map react,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-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:3a3e24c1-68aa-df1c-f4d9-177442570069 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id E1FE:161654:258315:31A4A0:6B0614A2 html-safe-nonce 57112ce232680a60e9cdaeb8cb43ff1bdcab7f572e3763eba6ab2cc5c9e2aa06 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUZFOjE2MTY1NDoyNTgzMTU6MzFBNEEwOjZCMDYxNEEyIiwidmlzaXRvcl9pZCI6IjQwNjQ5ODQxNjg2MDA1NzMwOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac def5ac89d9d135482a67559177cb7b6bcca949473cc6409825fd4d5ed0d84a55 hovercard-subject-tag issue:6290805707 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3777/issue_layout twitter:image https://opengraph.githubassets.com/0f40b21b4fb58b02ad01985ba28e8ba3f3495c47990a8e69c2cf6a725793238f/github/github-mcp-server/issues/3777 twitter:card summary_large_image og:image https://opengraph.githubassets.com/0f40b21b4fb58b02ad01985ba28e8ba3f3495c47990a8e69c2cf6a725793238f/github/github-mcp-server/issues/3777 og:image:alt Describe the bug failed to check lockdown mode: failed to get user permission level: GET https://api.github.com/repos/ og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username MartinNowak hostname github.com expected-hostname github.com None 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 turbo-cache-control no-preview go-import github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git octolytics-dimension-user_id 9919 octolytics-dimension-user_login github octolytics-dimension-repository_id 942771284 octolytics-dimension-repository_nwo github/github-mcp-server octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 942771284 octolytics-dimension-repository_network_root_nwo github/github-mcp-server turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 866f202ebf7ac5aff8f633417d9fd8a53818a977 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
Response headers:
Server github.com Content-Type text/html; charset=utf-8 Cache-Control max-age=0, private, must-revalidate
URLs of crawlers that visited me.