Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetToken ¶
func GetToken(ctx context.Context, source, audience string, httpClient *http.Client) (string, error)
GetToken retrieves an ID token from the specified source. It supports the "github_actions" and "local" sources. If the source is "github_actions", it will use the ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN environment variables to request an ID token from the GitHub Actions service. If the source is "local", it will return a hardcoded ID token.
Types ¶
type CommandResult ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.