cmd

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 43 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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