Use Invoke-WebRequest with a username and password for basic authentication on the GitHub API
I am assuming Basic authentication here. $cred = Get-Credential Invoke-WebRequest -Uri ‘https://whatever’ -Credential $cred You can get your credential through other means (Import-Clixml, etc.), but it does have to be a [PSCredential] object. Edit based on comments: GitHub is breaking RFC as they explain in the link you provided: The API supports Basic Authentication as … Read more