anchorectl correction
Correction related operations.
Every command on this page also accepts the global flags.
Subcommands
- correction add — Add a correction record that will be used to fix false positive vulnerabilities
- correction delete — Delete a single correction, looked up via it’s uuid
- correction get — Returns a single correction, looked up via it’s uuid
- correction list — Returns a list of corrections
correction add
Add a correction record that will be used to fix false positive vulnerabilities.
anchorectl correction add [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--description | string | ANCHORECTL_CORRECTION_DESCRIPTION | "" | No | Optional description of this correction rule. |
-i, --input | string | ANCHORECTL_INPUT | "" | No | Path to a JSON input file or - to read from stdin. |
--match | string (repeatable) | ANCHORECTL_CORRECTION_MATCH | [] | No | Matches of the form key=value (e.g. package=spring-core). |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
--replace | string (repeatable) | ANCHORECTL_CORRECTION_REPLACE | [] | No | Replacements of the form key=value (e.g. cpes=cpe:2.3:a:pivotal_software:spring_framework:3.2.14:::::::*). |
--type | string | ANCHORECTL_CORRECTION_TYPE | "" | No | Type of match [supports os, npm, gem, python, java, go]. |
correction delete
Delete a single correction, looked up via it’s uuid.
anchorectl correction delete ID [flags]
Aliases: del
Arguments
| Argument | Description |
|---|---|
ID | The correction ID. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
correction get
Returns a single correction, looked up via it’s uuid.
anchorectl correction get ID [flags]
Arguments
| Argument | Description |
|---|---|
ID | The correction ID. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
correction list
Returns a list of corrections.
anchorectl correction list [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |