Versions in this module Expand all Collapse all v1 v1.39.1 Oct 6, 2026 v1.39.0 Sep 30, 2026 Changes in this version + const GithubRepoEnvVar + const JobIDEnvVar + const RunnerWorkspaceEnvVar + const WorkflowRefEnvVar + var ErrJobUnknown = errors.New("cannot identify the job being curated in the workflow file") + var ErrWorkflowUnparsable = errors.New("cannot parse the workflow file") + func CrossReference(discovered []ActionRef, used JobUses) ([]ActionRef, []LocalUse) + func DefaultActionsCacheDir() (string, error) + func DefaultGithubRepo() string + func DefaultJobID() string + func DefaultWorkflowFile() string + func ErrCacheNotReadable() error + func IsLocalUse(raw string) bool + func RenderReportTable(rows []ActionReportRow, withParent bool) string + type ActionCacheScan struct + Refs []ActionRef + Unaccounted []UnaccountedEntry + func DiscoverActionCache(actionsCacheDir string) (ActionCacheScan, error) + func (s ActionCacheScan) UnaccountedError() error + type ActionCurationDecider interface + Decide func(ctx context.Context, artifactoryVcsRepo string, ref ActionRef) (ActionCurationResult, error) + func NewMockActionCurationDecider() ActionCurationDecider + type ActionCurationResult struct + Notes string + Status ActionCurationStatus + type ActionCurationStatus string + const ActionApproved + const ActionRejected + type ActionRef struct + Owner string + Parent string + Path string + Ref string + Repo string + Subpaths []string + type ActionReportRow struct + Action string + Notes string + Parent string + Ref string + Status string + func NewActionReportRow(ref ActionRef, result ActionCurationResult) ActionReportRow + func NotApproved(rows []ActionReportRow) []ActionReportRow + type ArtifactoryVcsRepoResolver interface + Resolve func(ctx context.Context, githubRepo string) (string, error) + func NewMockArtifactoryVcsRepoResolver() ArtifactoryVcsRepoResolver + type JobUses struct + Local []LocalUse + Remote []WorkflowUse + func ParseWorkflowUses(workflowPath, jobID string) (JobUses, error) + type LocalUse struct + DeclaredBy string + Raw string + type UnaccountedEntry struct + Path string + Reason string + type WorkflowUse struct + Owner string + Raw string + Ref string + Repo string + Subpath string