ciworkflow

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const WorkflowClassifierVersion = "ci-path-classifier-v1"

Variables

This section is empty.

Functions

func ValidateCredentialOperation

func ValidateCredentialOperation(operation CredentialOperation) error

func WorkflowModeOutputs

func WorkflowModeOutputs(mode WorkflowClassifierMode, result WorkflowClassifications) (map[string]bool, error)

Types

type CredentialOperation

type CredentialOperation struct {
	Operation  string
	TrustTier  string
	Capability string
	Token      SyntheticToken
	Target     string
}

type P11WorkflowJob

type P11WorkflowJob struct {
	Name                  string
	If                    string
	Needs                 []string
	RunsOn                string
	Permissions           map[string]string
	PermissionsExpression string
	Env                   map[string]string
	Steps                 []P11WorkflowStep
}

type P11WorkflowStep

type P11WorkflowStep struct {
	Name string
	Uses string
	If   string
	Env  map[string]string
	With map[string]string
	Run  string
}

type P11WorkflowSummary

type P11WorkflowSummary struct {
	Name                  string
	Events                []string
	Permissions           map[string]string
	PermissionsExpression string
	Env                   map[string]string
	Jobs                  map[string]P11WorkflowJob
	Scalars               []string
}

func ReadP11WorkflowSummary

func ReadP11WorkflowSummary(path string) (P11WorkflowSummary, error)

type SyntheticToken

type SyntheticToken struct {
	Name         string
	TrustTier    string
	Class        string
	Scopes       []string
	AllowedRoots []string
}

type WorkflowClassifications

type WorkflowClassifications struct {
	CIMacOS                  bool `json:"ci_macos"`
	CoverageGUI              bool `json:"coverage_gui"`
	SandboxMacOS             bool `json:"sandbox_macos"`
	LibghosttyNative         bool `json:"libghostty_native"`
	LibghosttyDependencyUnit bool `json:"libghostty_dependency_unit"`
	DevRelease               bool `json:"dev_release"`
	StableRelease            bool `json:"stable_release"`
	DocsPreviewTrigger       bool `json:"docs_preview_trigger"`
	DocsPreviewGlobal        bool `json:"docs_preview_global"`
	DocsPreviewBuild         bool `json:"docs_preview_build"`
}

func ClassifyWorkflowPaths

func ClassifyWorkflowPaths(changedFiles []string) (WorkflowClassifications, error)

type WorkflowClassifierMode

type WorkflowClassifierMode string
const (
	WorkflowClassifierModeCI          WorkflowClassifierMode = "ci"
	WorkflowClassifierModeCoverage    WorkflowClassifierMode = "coverage"
	WorkflowClassifierModeSandbox     WorkflowClassifierMode = "sandbox"
	WorkflowClassifierModeLibghostty  WorkflowClassifierMode = "libghostty"
	WorkflowClassifierModeDevRelease  WorkflowClassifierMode = "dev-release"
	WorkflowClassifierModeStable      WorkflowClassifierMode = "stable-release"
	WorkflowClassifierModeDocsPreview WorkflowClassifierMode = "docs-preview"
)

func WorkflowClassifierModes

func WorkflowClassifierModes() []WorkflowClassifierMode

Jump to

Keyboard shortcuts

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