Documentation ¶
Index ¶
- Variables
- func ActionExists(actionName string, patterns []string) bool
- func IsImmutableAction(action string) bool
- func PinAction(action, inputYaml string, exemptedActions []string, pinToImmutable bool) (string, bool)
- func PinActions(inputYaml string, exemptedActions []string, pinToImmutable bool) (string, bool, error)
- func PinDocker(inputYaml string) (string, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Tr http.RoundTripper = remote.DefaultTransport
Functions ¶
func ActionExists ¶ added in v1.5.2
Function to check if an action matches any pattern in the list
func IsImmutableAction ¶ added in v1.5.0
isImmutableAction checks if the action is an immutable action or not It queries the OCI manifest for the action and checks if the artifact type is "application/vnd.github.actions.package.v1+json"
Example usage:
# Immutable action (returns true) isImmutableAction("actions/checkout@v4.2.2") # Non-Immutable action (returns false) isImmutableAction("actions/checkout@v4.2.3")
REF - https://github.com/actions/publish-immutable-action/issues/216#issuecomment-2549914784
func PinActions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.