automation

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	RuleDescription string         `json:"ruleDescription"`
	RuleActions     []string       `json:"ruleActions"`
	RuleLink        string         `json:"ruleLink"`
	HasCves         bool           `json:"hasCves"`
	Triggered       bool           `json:"triggered"`
	TriggerEvents   []TriggerEvent `json:"triggerEvents"`
}

func (*Rule) FailPipeline

func (rule *Rule) FailPipeline() bool

FailPipeline checks if rule should fail the pipeline

type TriggerEvent

type TriggerEvent struct {
	Dependency     string   `json:"dependency"`
	DependencyLink string   `json:"dependencyLink"`
	Licenses       []string `json:"licenses"`
	Cve            string   `json:"cve"`
	Cvss2          float32  `json:"cvss2"`
	Cvss3          float32  `json:"cvss3"`
	CveLink        string   `json:"cveLink"`
}

Jump to

Keyboard shortcuts

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