Create a new GitHub exchanger.
The URL of the GitHub token endpoint (ACTIONS_ID_TOKEN_REQUEST_URL
).
The GitHub token to use (ACTIONS_ID_TOKEN_REQUEST_TOKEN
).
Protected
Readonly
requestThe URL of the GitHub token endpoint (ACTIONS_ID_TOKEN_REQUEST_URL
).
Protected
Readonly
tokenThe GitHub token to use (ACTIONS_ID_TOKEN_REQUEST_TOKEN
).
Exchange the credentials for a VeraId credential.
The VeraId Authority endpoint to obtain the credential.
The credential if successful.
Protected
fetchFetch the JWT from the hosting service.
The audience of the JWT.
The timeout for in milliseconds.
The JWT.
Protected
generateGenerate the Authorization
request header for the VeraId Authority credential endpoint.
The VeraId Authority endpoint to obtain the credential.
The timeout (in milliseconds) to obtain the original credential.
The authorization header.
Static
initCreate a new GitHub exchanger from environment variables.
A new GitHub exchanger.
Exchanger of GitHub tokens for VeraId credentials.