cmd

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgErrorFile  = "error-file"
	ArgOutputFile = "output-file"
	ArgToken      = "github-token"
	ArgServerUrl  = "server-url"
	ScmType       = "scm"
)
View Source
const (
	EnvToken     = "github_token"
	NewEnvToken  = "legitify_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 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