Skip to content

feat: authenticate GitHub API requests using GH_TOKEN/GITHUB_TOKEN#6071

Open
wmmc88 wants to merge 1 commit intomicrosoft:masterfrom
wmmc88:gha-token
Open

feat: authenticate GitHub API requests using GH_TOKEN/GITHUB_TOKEN#6071
wmmc88 wants to merge 1 commit intomicrosoft:masterfrom
wmmc88:gha-token

Conversation

@wmmc88
Copy link

@wmmc88 wmmc88 commented Feb 26, 2026


closes #5949

Microsoft Reviewers: Open in CodeFlow

@wmmc88 wmmc88 requested a review from a team as a code owner February 26, 2026 18:28
@github-actions

This comment has been minimized.

@JohnMcPMS
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@denelon
Copy link
Collaborator

denelon commented Mar 3, 2026

@wmmc88 thanks for the submission!

I think it might be good to put something in the PowerShell documentation for where this feature applies. I noticed there are no new arguments, and it's just using the environment variables. I wouldn't want folks surprised in the event this code is being executed, and it wasn't really defined anywhere in documentation.

@JohnMcPMS
Copy link
Member

See src/PowerShell/Help/Microsoft.WinGet.Client/Repair-WinGetPackageManager.md

@wmmc88 wmmc88 force-pushed the gha-token branch 2 times, most recently from a8aa277 to c24407d Compare March 3, 2026 22:19
JohnMcPMS
JohnMcPMS previously approved these changes Mar 3, 2026
@JohnMcPMS
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@github-actions

This comment has been minimized.

… PowerShell module (microsoft#5949)

Add automatic detection of GH_TOKEN and GITHUB_TOKEN environment
variables in the PowerShell module GitHubClient to authenticate
GitHub API requests, increasing rate limits from 60 to 5,000/hour.

Also add documentation to Repair-WinGetPackageManager and
Assert-WinGetPackageManager help docs describing the environment
variable behavior.
@JohnMcPMS
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

Feature Request: Allow Authenticated Github API Requests

3 participants