sast

package
v0.26.5 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasFailedSAST

func HasFailedSAST(sast SAST) (bool, error)

Types

type CWE

type CWE struct {
	ID  string `json:"id"`
	URL string `json:"url"`
}

type SAST

type SAST struct {
	GolangErrors struct {
	} `json:"Golang errors"`
	Issues []struct {
		Severity     string      `json:"severity"`
		Confidence   string      `json:"confidence"`
		Cwe          CWE         `json:"cwe"`
		RuleId       string      `json:"rule_id"`
		Details      string      `json:"details"`
		File         string      `json:"file"`
		Code         string      `json:"code"`
		Line         string      `json:"line"`
		Column       string      `json:"column"`
		Nosec        bool        `json:"nosec"`
		Suppressions interface{} `json:"suppressions"`
	} `json:"Issues"`
	Stats struct {
		Files int `json:"files"`
		Lines int `json:"lines"`
		Nosec int `json:"nosec"`
		Found int `json:"found"`
	} `json:"Stats"`
	GosecVersion string `json:"GosecVersion"`
}

Jump to

Keyboard shortcuts

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