config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuntimeBaseConfig baseConfig
View Source
var RuntimeExtraArgs []string

RuntimeExtraArgs holds args passed after a "--" separator on the command line, to be forwarded verbatim to the underlying scanner binary (trivy, semgrep, checkov, gitleaks).

Functions

func GetAndWriteConfigFile added in v1.2.0

func GetAndWriteConfigFile(ctx context.Context, configFileName string, assetName string) (string, error)

func GetConfigFile added in v1.2.0

func GetConfigFile(ctx context.Context, configID string, assetName string) (string, error)

func GetTokenFromKeyring added in v1.9.0

func GetTokenFromKeyring(apiURL, assetName string) (string, error)

func ParseAttestationConfig

func ParseAttestationConfig()

func ParseBaseConfig

func ParseBaseConfig(runningCMD string)

func ParseInTotoConfig

func ParseInTotoConfig()

func SetXAssetHeaders

func SetXAssetHeaders(req *http.Request)

func StoreTokenInKeyring

func StoreTokenInKeyring(apiURL, assetName, token string) error

Types

type AttestationConfig

type AttestationConfig struct {
	PredicateType string `mapstructure:"predicateType"`
}
var RuntimeAttestationConfig AttestationConfig

type InTotoConfig

type InTotoConfig struct {
	Step      string   `mapstructure:"step"`
	Materials []string `mapstructure:"materials"`
	Products  []string `mapstructure:"products"`
	Ignore    []string `mapstructure:"ignore"`

	SupplyChainID          string `mapstructure:"supplyChainId"`
	GenerateSlsaProvenance bool   `mapstructure:"generateSlsaProvenance"`

	LayoutKeyPath string `mapstructure:"layoutKey"`

	Key       toto.Key
	LayoutKey toto.Key

	Disabled bool
}
var RuntimeInTotoConfig InTotoConfig

Jump to

Keyboard shortcuts

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