Package action implements the GitHub Actions security policy.
This section is empty.
This section is empty.
NewAction returns a new Action Use policy.
Action is the Action Use policy object, implements policydef.Policy.
Check performs the policy check for Action Use policy based on the configuration stored in the org, implementing policydef.Policy.Check().
Fix implementing policydef.Policy.Fix(). Not supported.
GetAction returns the configured action from Action Use policy's configuration stored in the org repo, default log. Implementing policydef.Policy.GetAction().
Check whether this policy is enabled or not.
Name returns the name of this policy, implementing policydef.Policy.Name().
type ActionSelector struct { Name string `json:"name"` Version string `json:"version"` }
ActionSelector specifies a selection of Actions.
type OrgConfig struct { Action string `json:"action"` Groups []*RuleGroup `json:"groups"` }
OrgConfig is the org-level config definition for Action Use.
type RepoSelector struct { Name string `json:"name"` Language []string `json:"language"` Exclude []*RepoSelector `json:"exclude"` }
RepoSelector specifies a selection of repos.
type Rule struct { Name string `json:"name"` Method string `json:"method"` Priority string `json:"priority"` Actions []*ActionSelector `json:"actions"` MustPass bool `json:"mustPass"` RequireAll bool `json:"requireAll"` }
Rule is an Action Use rule.
type RuleGroup struct { Name string `json:"name"` Repos []*RepoSelector `json:"repos"` Rules []*Rule `json:"rules"` }
RuleGroup is used to apply rules to repos matched by RepoSelectors.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4