workflowcap

package
v1.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveCatalogs added in v1.14.0

func ResolveCatalogs(scopes []CatalogScope) map[string]*Catalog

ResolveCatalogs returns new immutable catalogs with topology-backed inherited facts. A declared mapping resolves only when its source is in the scan set.

Types

type Catalog added in v1.14.0

type Catalog struct {
	// contains filtered or unexported fields
}

Catalog is immutable after construction and owns the canonical parser outcome for every supported workflow surface in one repository root.

func BuildCatalog added in v1.14.0

func BuildCatalog(root string, options detect.Options) (*Catalog, error)

func CatalogFor added in v1.14.0

func CatalogFor(root string, options detect.Options) (*Catalog, error)

func (*Catalog) EntrypointPaths added in v1.14.0

func (c *Catalog) EntrypointPaths() []string

func (*Catalog) Lookup added in v1.14.0

func (c *Catalog) Lookup(path string) (CatalogEntry, bool)

func (*Catalog) Paths added in v1.14.0

func (c *Catalog) Paths() []string

type CatalogEntry added in v1.14.0

type CatalogEntry struct {
	Path        string
	Platform    string
	SurfaceRole string
	Result      Result
	ParseError  *model.ParseError
}

type CatalogScope added in v1.14.0

type CatalogScope struct {
	Repo    string
	Root    string
	Catalog *Catalog
}

type Result

type Result struct {
	Capabilities           []string
	Evidence               []model.Evidence
	Tool                   string
	WorkflowName           string
	JobNames               []string
	EnvironmentNames       []string
	Headless               bool
	DangerousFlags         bool
	HasSecretAccess        bool
	HasApprovalGate        bool
	StepCount              int
	Triggers               []string
	ApprovalSource         string
	DeploymentGate         string
	ProofRequirement       string
	ExecutionRelationships []model.ExecutionRelationship
}

func Analyze

func Analyze(path string, payload []byte) (Result, *model.ParseError)

func AnalyzeInRoot added in v1.6.0

func AnalyzeInRoot(root, path string, payload []byte) (Result, *model.ParseError)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL