Documentation
¶
Index ¶
- func AddWorkflowLevelPermissions(inputYaml string, addProjectComment bool, addEmptyTopLevelPermissions bool) (string, error)
- func IterateNode(node *yaml.Node, identifier, tag string, minLine int) *yaml.Node
- func ShouldAddWorkflowLevelPermissions(jobErrors []JobError) bool
- type JobError
- type JobState
- type Permission
- type SecureWorkflowReponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateNode ¶
Types ¶
type Permission ¶
type Permission struct {
// contains filtered or unexported fields
}
type SecureWorkflowReponse ¶
type SecureWorkflowReponse struct {
OriginalInput string
FinalOutput string
IsChanged bool
HasErrors bool
AlreadyHasPermissions bool
AddedMaintainedActions bool
PinnedActions bool
AddedHardenRunner bool
AddedPermissions bool
IncorrectYaml bool
WorkflowFetchError bool
JobErrors []JobError
MissingActions []string
UsingSecureRepoPAT bool
}
func AddJobLevelPermissions ¶
func AddJobLevelPermissions(inputYaml string, addEmptyTopLevelPermissions bool) (*SecureWorkflowReponse, error)
Click to show internal directories.
Click to hide internal directories.