You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all: Great job getting portion of the API working. I just encountered an issue today where this could have been helpful. Although I wonder how this pans out for large-scale automations where the token limit of 5000 will be hit (just had such a case today).
Is it possible to also use a GitHub App AccessToken? I know that in order to get that we need a signed JWT, but that could be accomplished with PowerShell I think, provided we provide a certificate.
Alternatively, is it possible to provide my own Bearer Token?
Is it possible to also use a GitHub App AccessToken? I know that in order to get that we need a signed JWT, but that could be accomplished with PowerShell I think, provided we provide a certificate.
This project doesn't currently support that, but I'm totally open to submissions to add that support.
Alternatively, is it possible to provide my own Bearer Token?
At the moment, no.
Here you can see how we compose the Authorization header:
Understood. Yeah I noticed some functionality I would need is missing from the API implementation as well. I ll see what I can contribute once I have finished my work.
Activity
[-]Can this be used with a GitHub App Token?[/-][+]Add support for authentication with JWT[/+]HowardWolosky commentedon Apr 20, 2023
This project doesn't currently support that, but I'm totally open to submissions to add that support.
At the moment, no.
Here you can see how we compose the Authorization header:
PowerShellForGitHub/GitHubCore.ps1
Lines 250 to 254 in 516be0b
This uses the
tokensyntax as opposed to theBearersyntax (which a JWT would require).ChristopherCapito commentedon Apr 21, 2023
Understood. Yeah I noticed some functionality I would need is missing from the API implementation as well. I ll see what I can contribute once I have finished my work.