scan

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package scan implements the scan command.

Index

Constants

This section is empty.

Variables

View Source
var CmdScan = &base.Command{
	UsageLine: "scan [flags]",
	Short:     "run scan",
	Long: `
Run a scan using the provided config file.

The -c flag allows to specify a configuration file. By default, "lava
scan" looks for a configuration file with the name "lava.yaml" in the
current directory.

The -forcecolor flag forces colorized output. By default, colorized
output is disabled in the following cases:

  - Lava is not executed from a terminal.
  - Lava is executed from a "dumb" terminal.
  - The NO_COLOR environment variable is set (regardless of its value).

The exit code of the command depends on the highest severity among all
the vulnerabilities that have been found.

  - 104: Critical severity vulnerabilities found
  - 103: High severity vulnerabilities found
  - 102: Medium severity vulnerabilities found
  - 101: Low severity vulnerabilities found
  - 100: Informational vulnerabilities found
  -   2: Syntax error
  -   1: Command error
  -   0: No vulnerabilities found

Those vulnerabilities that has been excluded in the configuration are
not considered in the computation of the exit code. In other words,
vulnerabilities with a severity that is lower than "report.severity"
and vulnerabilities that match any "report.exclusions" rules are
ignored.
	`,
}

CmdScan represents the scan command.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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