Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionRef ¶
type ActionRef struct {
Owner string // e.g. "actions"
Repo string // e.g. "checkout"
Path string // e.g. "" or "/subdir"
Ref string // e.g. "v4" or a full SHA
Node *yaml.Node
}
ActionRef is a parsed `uses:` value like "actions/checkout@v4".
func CollectActions ¶
CollectActions returns all unique action references from a workflow.
type Job ¶
type Job struct {
ID string
Node *yaml.Node
Permissions *Permissions
Uses *ActionRef // non-nil for reusable workflow jobs
Steps []Step
}
Job is a single job inside the workflow.
type NodeSnapshot ¶ added in v0.3.0
NodeSnapshot stores the original value of a yaml.Node at parse time.
type Permissions ¶
type Permissions struct {
Node *yaml.Node
IsEmpty bool // true when the key is absent
Values map[string]string // e.g. {"contents": "read", "packages": "write"}
IsAll bool // true when set to a bare string like "write-all"
}
Permissions models the top-level or job-level "permissions" block.
type Step ¶
type Step struct {
Name string
Uses *ActionRef // nil when the step is a `run:` step
Node *yaml.Node
}
Step represents one step inside a job.
Click to show internal directories.
Click to hide internal directories.