jasutils

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ApplicabilityRuleIdPrefix     = "applic_"
	ApplicabilitySarifPropertyKey = "applicability"

	DynamicTokenValidationMinXrayVersion = "3.101.0"
	TokenValidationStatusForNonTokens    = "Not a token"
)
View Source
const SastFingerprintKey = "precise_sink_and_sink_function"

Variables

View Source
var TokenValidationOrder = map[string]int{
	"Active":      1,
	"Unsupported": 2,
	"Unavailable": 3,
	"Inactive":    4,
	"Not a token": 5,
	"":            6,
}

Functions

func ApplicabilityRuleIdToCve

func ApplicabilityRuleIdToCve(sarifRuleId string) string

func ConvertApplicableToScore added in v1.6.0

func ConvertApplicableToScore(applicability string) int

func CveToApplicabilityRuleId

func CveToApplicabilityRuleId(cveId string) string

Types

type ApplicabilityStatus

type ApplicabilityStatus string
const (
	Applicable                ApplicabilityStatus = "Applicable"
	NotApplicable             ApplicabilityStatus = "Not Applicable"
	ApplicabilityUndetermined ApplicabilityStatus = "Undetermined"
	NotCovered                ApplicabilityStatus = "Not Covered"
	MissingContext            ApplicabilityStatus = "Missing Context"
	NotScanned                ApplicabilityStatus = ""
)

func ConvertToApplicabilityStatus

func ConvertToApplicabilityStatus(status string) ApplicabilityStatus

func (ApplicabilityStatus) String

func (as ApplicabilityStatus) String() string

func (ApplicabilityStatus) ToString

func (as ApplicabilityStatus) ToString(pretty bool) string

type JasScanType

type JasScanType string
const (
	Applicability JasScanType = "Applicability"
	Secrets       JasScanType = "Secrets"
	IaC           JasScanType = "IaC"
	Sast          JasScanType = "Sast"
)

func GetJasScanTypes added in v1.12.0

func GetJasScanTypes() []JasScanType

func SubScanTypeToJasScanType added in v1.12.0

func SubScanTypeToJasScanType(subScanType utils.SubScanType) JasScanType

func (JasScanType) String

func (jst JasScanType) String() string

type TokenValidationStatus added in v1.10.0

type TokenValidationStatus string
const (
	Active      TokenValidationStatus = "Active"
	Inactive    TokenValidationStatus = "Inactive"
	Unsupported TokenValidationStatus = "Unsupported"
	Unavailable TokenValidationStatus = "Unavailable"
	NotAToken   TokenValidationStatus = TokenValidationStatusForNonTokens
)

func (TokenValidationStatus) String added in v1.10.0

func (tvs TokenValidationStatus) String() string

func (TokenValidationStatus) ToString added in v1.10.0

func (tvs TokenValidationStatus) ToString() string

Jump to

Keyboard shortcuts

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