microsoft / PowerShellForGitHub

Microsoft PowerShell wrapper for GitHub API
Other
584 stars 184 forks source link

Not forwarding AccessToken to sub-commands for Repo Team Permissions #362

Closed HowardWolosky closed 1 year ago

HowardWolosky commented 1 year ago

Description

The Get/Set/Remove-GitHubRepositoryTeamPermission functions will sometimes call Get-GitHubTeam to get missing information. In those instances, they weren't passing along the AccessToken parameter if it had been provided by the user. In those scenarios, the result will be a 404 since the Get-GitHubTeam call won't have the same auth permissions as the core API being called.

Issues Fixed

Fixes #353

Checklist