Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasWorkflowDispatch ¶
HasWorkflowDispatch checks if workflow_dispatch is in the on: section.
func ParseAnnotations ¶
ParseAnnotations extracts cron annotations from workflow file content.
Types ¶
type ScanResult ¶
type ScanResult struct {
Annotations []github.CronAnnotation
}
ScanResult holds the scan results.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner scans repositories for cron annotations.
type ScannerClient ¶
type ScannerClient interface {
GetInstallationRepos(ctx context.Context) ([]github.Repository, error)
GetWorkflowFiles(ctx context.Context, owner, repo string) ([]github.WorkflowFile, error)
GetFileContent(ctx context.Context, owner, repo, path, ref string) (string, error)
}
ScannerClient is the GitHub API interface used by the scanner.
Click to show internal directories.
Click to hide internal directories.