Versions in this module Expand all Collapse all v1 v1.1.2 Jul 22, 2022 Changes in this version + func GetToken() (string, error) + func NewGithubClient(ctx context.Context) (*github.Client, error) + type OIDCClient struct + func NewOIDCClient() (*OIDCClient, error) + func NewTestOIDCServer(t *testing.T, now time.Time, token *OIDCToken) (*httptest.Server, *OIDCClient) + func (c *OIDCClient) Token(ctx context.Context, audience []string) (*OIDCToken, error) + type OIDCToken struct + ActorID string + Audience []string + Expiry time.Time + Issuer string + JobWorkflowRef string + RepositoryID string + RepositoryOwnerID string + type WorkflowContext struct + ActionPath string + Actor string + BaseRef string + Event map[string]interface{} + EventName string + HeadRef string + Ref string + RefType string + Repository string + RepositoryOwner string + RunAttempt string + RunID string + RunNumber string + SHA string + ServerURL string + Workflow string + func GetWorkflowContext() (WorkflowContext, error) + func (c WorkflowContext) RepositoryURI() string