Package dev.sigstore.oidc.client
Class GithubActionsOidcClient
java.lang.Object
dev.sigstore.oidc.client.GithubActionsOidcClient
- All Implemented Interfaces:
OidcClient
Obtain an oidc token from the github execution environment.
https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Method Summary
-
Method Details
-
builder
-
isEnabled
Description copied from interface:OidcClient
Determine if this client can be used in the current environment. For example, we can ignore Oidc Clients that are scoped to a specific CI environment- Specified by:
isEnabled
in interfaceOidcClient
- Parameters:
env
- the configured system environment- Returns:
- true if we should use credentials from this client
-
getIDToken
- Specified by:
getIDToken
in interfaceOidcClient
- Throws:
OidcException
-