Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionExporter ¶
type ActionExporter struct {
// Configuration options
IncludeVersions bool // Whether to include version tags in exported actions
OutputPath string // Where to write the policy file
IncludeCustom bool // Whether to include custom rules for each repository
PolicyMode string // Which policy mode to use ("allow" or "deny")
}
ActionExporter handles exporting policy files based on discovered actions
func NewExporter ¶
func NewExporter() *ActionExporter
NewExporter creates a new ActionExporter with default configuration
func (*ActionExporter) ExportPolicyFile ¶
func (e *ActionExporter) ExportPolicyFile(config *policy.PolicyConfig) error
ExportPolicyFile writes the policy configuration to a YAML file
func (*ActionExporter) GeneratePolicyFromActions ¶
func (e *ActionExporter) GeneratePolicyFromActions(actionsMap map[string][]github.Action) (*policy.PolicyConfig, error)
GeneratePolicyFromActions creates a policy configuration from discovered actions
Click to show internal directories.
Click to hide internal directories.