cmd

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgErrorFile                = "error-file"
	ArgOutputFile               = "output-file"
	ArgPermissionsOutputFile    = "permissions-file"
	ArgToken                    = "token"
	ArgServerUrl                = "server-url"
	ArgIgnoreInvalidCertificate = "ignore-invalid-certificate"
	ScmType                     = "scm"
)
View Source
const (
	EnvToken     = "legitify_token"
	NewEnvToken  = "scm_token"
	EnvServerUrl = "server_url"
)
View Source
const (
	DefaultColorOption = colorAuto
)
View Source
const (
	DefaultScOption = scNo
)

Variables

This section is empty.

Functions

func ColorOptions

func ColorOptions() []string

func Execute

func Execute()

func GetVersion

func GetVersion() string

func GetVersionLean added in v1.0.6

func GetVersionLean() string

func InitColorPackage

func InitColorPackage(colorWhen string) error

func IsScorecardEnabled

func IsScorecardEnabled(when string) bool

func IsScorecardVerbose

func IsScorecardVerbose(when string) bool

func ValidateScorecardOption

func ValidateScorecardOption(opt string) error

Types

type Client added in v0.1.7

type Client interface {
	IsAnalyzable(repo types.RepositoryWithOwner) (bool, error)
	Scopes() permissions.TokenScopes
	Organizations() ([]types.Organization, error)
	Repositories() ([]types.RepositoryWithOwner, error)
}

type PolicyDoc

type PolicyDoc struct {
	PolicyName  string `yaml:"policy_name"`
	Title       string
	Description string
	Severity    string
	Remediation []string
	Threat      []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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