cmd

package
v0.0.0-...-4499c7c Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type CheckovCheckResult

type CheckovCheckResult struct {
	Result        string   `json:"result"`
	EvaluatedKeys []string `json:"evaluated_keys"`
}

type CheckovConfig

type CheckovConfig struct {
	// Exclusions are checkov failures which should not lead to a failure.
	Exclusions map[string]CheckovExclusions `json:"exclusions"`
}

CheckovConfig represents the configuration for this tool to define exclusions.

type CheckovExclusion

type CheckovExclusion struct {
	CheckovFailure
	// contains filtered or unexported fields
}

CheckovExclusion is a exclusion for a checkov finding with a found bool to help tracking if the exclusion has been found during analyzation.

type CheckovExclusions

type CheckovExclusions []*CheckovExclusion

CheckovExclusions is a list of exclusions for checkov reports.

type CheckovFailedCheck

type CheckovFailedCheck struct {
	CheckID     string             `json:"check_id"`
	CheckName   string             `json:"check_name"`
	CheckResult CheckovCheckResult `json:"check_result"`
	FilePath    string             `json:"file_path"`
	Resource    string             `json:"resource"`
	Guideline   string             `json:"guideline"`
}

type CheckovFailure

type CheckovFailure struct {
	CheckID       string   `json:"check_id"`
	Resource      string   `json:"resource"`
	EvaluatedKeys []string `json:"evaluated_keys"`
	// contains filtered or unexported fields
}

CheckovFailure is the data struct used in the reports created by running checkov.

func (CheckovFailure) String

func (c CheckovFailure) String() string

type CheckovReport

type CheckovReport struct {
	Results CheckovResults `json:"results"`
}

type CheckovResults

type CheckovResults struct {
	FailedChecks []CheckovFailedCheck `json:"failed_checks"`
}

type JUnitTestSuites

type JUnitTestSuites struct {
	XMLName    xml.Name                `xml:"testsuites"`
	TestSuites []report.JUnitTestSuite `xml:"testsuite"`
}

JUnitTestSuites represents the root element of the JUnit XML

type JobHistory

type JobHistory struct {
	LastUpdated time.Time    `json:"last_updated"`
	Jobs        []gitlab.Job `json:"jobs"`
}

JobHistory represents the full job history data structure

Jump to

Keyboard shortcuts

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