| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR brings issue_read’s get_labels method in line with the rest of the issue read paths by enforcing the shared lockdown-mode author verification (introduced in the stacked PR #2881). Under lockdown mode, label results are now withheld unless the issue author can be verified as “safe content” (e.g., has push access), matching the behavior of GetIssue.
Changes:
| File | Description |
|---|---|
| pkg/github/issues.go | Passes deps into GetIssueLabels, fetches issue author login via GraphQL, and gates label results with authorLockdownResult in lockdown mode. |
| pkg/github/issues_test.go | Adds a parameterized GraphQL mock that includes author login and introduces lockdown-mode tests for allowed/denied label access. |
Sorry, something went wrong.
|
get_labels is collaborator/triage-authored so we are descoping it and keeping lockdown to the genuinely untrusted paths. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Note
Stacked on #2881.
Summary
Applies the shared lockdown author check to issue_read's get_labels.
Why
Part of https://github.com/github/copilot-mcp-core/issues/1798 - get_labels was the one issue_read branch not applying the lockdown check, this makes the tool uniform.
What changed
MCP impact
Prompts tested (tool changes only)
Security / limits
Tool renaming
Lint & tests
Docs