Versions in this module Expand all Collapse all v0 v0.6.3 Aug 12, 2025 v0.6.2 Aug 6, 2025 Changes in this version + const AnyReference + const EnforcementActive + const GitHubActionsIntegrationId + func BranchToFullRef(branch string) string + func CheckNameToControlName(checkName string) slsa.ControlName + func GetBranchFromRef(ref string) string + func GetTagFromRef(ref string) string + func TagToFullRef(tag string) string + type GhControlStatus struct + ActivityType string + ActorLogin string + CommitPushTime time.Time + Controls slsa.Controls + func (cs *GhControlStatus) AddControl(newControls ...*provenance.Control) + type GitHubConnection struct + Options Options + func NewGhConnection(owner, repo, ref string) *GitHubConnection + func NewGhConnectionWithClient(owner, repo, ref string, client *github.Client) *GitHubConnection + func (ghc *GitHubConnection) Client() *github.Client + func (ghc *GitHubConnection) EnableBranchRules(ctx context.Context) error + func (ghc *GitHubConnection) EnableTagRules(ctx context.Context) error + func (ghc *GitHubConnection) GetBranchControls(ctx context.Context, ref string) (*slsa.Controls, error) + func (ghc *GitHubConnection) GetBranchControlsAtCommit(ctx context.Context, commit, ref string) (*GhControlStatus, error) + func (ghc *GitHubConnection) GetDefaultBranch(ctx context.Context) (string, error) + func (ghc *GitHubConnection) GetFullRef() string + func (ghc *GitHubConnection) GetLatestCommit(ctx context.Context, targetBranch string) (string, error) + func (ghc *GitHubConnection) GetNotesForCommit(ctx context.Context, commit string) (string, error) + func (ghc *GitHubConnection) GetPriorCommit(ctx context.Context, sha string) (string, error) + func (ghc *GitHubConnection) GetRepoUri() string + func (ghc *GitHubConnection) GetTagControls(ctx context.Context, commit, ref string) (*GhControlStatus, error) + func (ghc *GitHubConnection) Owner() string + func (ghc *GitHubConnection) Repo() string + func (ghc *GitHubConnection) WithAuthToken(token string) *GitHubConnection + type Options struct + AllowMergeCommits bool + type RequiredCheck struct + Name string + Since time.Time