Skip to content

Narrow GitHub PAT injection to api.github.com only#16

Merged
bbrowning merged 1 commit intomainfrom
narrow-github-pat
Apr 3, 2026
Merged

Narrow GitHub PAT injection to api.github.com only#16
bbrowning merged 1 commit intomainfrom
narrow-github-pat

Conversation

@bbrowning
Copy link
Copy Markdown
Owner

Agents only need the PAT for GitHub API calls (gh CLI, PR creation,
etc.), not for git clone of public repos. Removing github.com and
*.githubusercontent.com from the credential routing avoids unnecessarily
exposing the PAT on every request to those domains.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Agents only need the PAT for GitHub API calls (gh CLI, PR creation,
etc.), not for git clone of public repos. Removing github.com and
*.githubusercontent.com from the credential routing avoids unnecessarily
exposing the PAT on every request to those domains.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bbrowning bbrowning merged commit e990bd7 into main Apr 3, 2026
6 checks passed
@bbrowning bbrowning deleted the narrow-github-pat branch April 3, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant