Documentation
¶
Overview ¶
Package workflow parses GitHub Actions workflow YAML to extract the external actions it references (the `uses:` clauses), without depending on a full YAML library — a focused regexp is sufficient and avoids a heavy dependency.
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"
Subpath string // e.g. "sub/path" for actions/checkout/sub/path@v3, else ""
Ref string // the pinned ref after '@': a tag, branch, or commit SHA
}
ActionRef is a single `uses:` reference to a Marketplace action.
func ParseActions ¶
ParseActions extracts every Marketplace action reference from workflow YAML, in document order, with duplicates removed.
Click to show internal directories.
Click to hide internal directories.