Documentation
¶
Overview ¶
Package oidc provides GitHub Actions OIDC token acquisition and caching.
The Provider fetches short-lived JWTs from the GitHub Actions OIDC endpoint (ACTIONS_ID_TOKEN_REQUEST_URL) and caches them per audience, refreshing automatically before they expire.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider acquires and caches GitHub Actions OIDC tokens. Tokens are keyed by audience and refreshed automatically before expiry.
func NewProvider ¶
NewProvider creates a new Provider using the given OIDC request URL and bearer token. These values come from the ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variables respectively.
Click to show internal directories.
Click to hide internal directories.