Share CLI results with the Snyk Web UI
You can use the CLI snyk iac test
command to address known configuration issues.
To see these issues displayed in the Snyk Web UI, run the following CLI command:
snyk iac test myproject --report
Using Custom rules and the Share Results functionality together is not currently supported.
Snyk does not share any file contents over the network, only the required metadata for the configuration issues that were just scanned.
snyk iac test --report
example output
snyk iac test --report
example outputThis sends a snapshot of your current configuration issues to your Snyk dashboard for viewing in the Snyk Web UI.
Viewing snapshots in the Snyk Web UI
Log in to the Snyk Web UI and navigate to your Organization Project page to see the most recent snapshot of your scanned Project.
You can also open the Project itself and see the Project details:
Ignores
You can ignore issues using the Snyk Web UI or by creating a .snyk
policy file along with your Project when scanning. For more information, see Iac Ignores using the .snyk policy file.
Issues that are ignored by using the .snyk
policy file can not be unignored in the Snyk web UI.
Project tags
You can attach tags to the scanned Projects using the --project-tags
option. This option accepts a comma-separated list of tags, where each tag is a key-value pair. Keys and values are separated by an =
sign. The --project-tags
option is valid only when used with --report
.
The following example attaches the tags department
and team
to the scanned Projects, with values platform
and persistence
, respectively.
Project attributes
You can set attributes for the scanned Projects using the --project-business-criticality
, --project-environment
, and --project-lifecycle
options. These options are valid only when used with --report
.
--project-business-criticality
accepts a comma-separated list of the following values:critical
,high
,medium
,low
.--project-environment
accepts a comma-separated list of the following values:frontend
,backend
,internal
,external
,mobile
,saas
,onprem
,hosted
,distributed
.--project-lifecycle
accepts a comma-separated list of the following values:production
,development
,sandbox
.
The following example sets the business criticality to high
, the environment to the values frontend
and internal
, and the lifecycle to development
for each scanned Project.
Target reference
You can set the target reference for the scanned Projects using the --target-reference
option. This option is valid only when used with --report
.
The following example sets the target reference for the scanned Projects to the name of the current Git branch.
Last updated