export

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL