Generate a CVSS report from an existing CVSS report configuration.
Synopsis
cov-generate-cvss-report <configuration-file>
[--auth-key-file <auth-key-file> | --password <spec>]
[--company-logo <company-logo>]
[--help]
[--locale <locale>]
[--on-new-cert <value>]
[--output <output-path-to-pdf>]
[--profile <security-profile-file>]
[--project <project-name>]
[--report]
[--scores]
[--user <username>]
Description
The cov-generate-cvss-report command creates a CVSS report based
on a configuration file and defect information in Coverity Connect.
--profile
<security-profile-file> and
--scores options in the same command as the --output
<output-file> and --report
options.You can also generate a report without using the --profile
<security-profile-file> and
--scores options, but you should ensure that the
CVSS_* attributes are updated before generating the
report.
Options
Optional arguments:
--company-logo-
Path to the company logo file.
--help-
Display this help message and exit.
--locale <locale>- (Optional) Locale of the report. Default value:
en_US(English).The Coverity Integrity report also supports
ja_JP(Japanese).The CVSS report, MISRA report and Security report also support
ja_JP(Japanese),ko_KR(Korean), andzh_CN(Simplified Chinese). --on-new-cert <value>-
(Optional) When connecting to the Coverity Connect server via TLS/SSL, this parameter
specifies whether to trust (with trust-first-time) self-signed certificates,
presented by the server, that the application has not seen before. The
<value>parameter can have one of two values:distrust- (The default) If the certificate is self-signed, the connect attempt will fail.
trust-
The certificate will be accepted, even if it is self-signed.
CAUTION:Setting
on-new-certtotrustdoes not currently work with Coverity Analysis and Black DuckĀ® Bridge. The workaround is to manually add the self-signed certificate to your operating system's certificate store. This will tell the operating system that it can trust this certificate, and should allow you to continue.
For information on the TLS/SSL certificate management functionality, please see Coverity Platform User and Administrator Guide.
--output <output_file>- (Optional) Specifies a PDF file in which to save the report.
If a file of this name already exists, the new report overwrites the old one.
--profile <security-profile-file>.json-
A .json file with CWE-CVSS vector mappings.
--project <project-name>-
(Optional) Name of the Coverity project to assign defect metrics. This can be set via command line or entered directly in the YAML configuration file.
Note that if a user has already set the project in the config.yaml file and also tries to set the
--projectname through the command line, the command line will supercede what is written in the configuration file. --report-
Must be specified with the
--output <output-file>option. Can also be used with the--profile <security-profile-file>and--scoresoptions. When specified without the--scoresoption, it generates a CVSS Report and does not update theCVSS_*attributes.When specified with the
--scoresoption, the--reportoption generates the CVSS Report and also updates theCVSS_*attributes in Coverity Connect. --scores-
When specified with the
--reportoption, the--scoresoption updates theCVSS_*attributes in Coverity Connect when generating a report. --user <username>- Username for connecting to Coverity Connect. This can be set via command line or entered directly in the YAML configuration file.
Required arguments:
--auth-key-file <auth-key-file>- (Required if
--passwordis not present.) Specify the location of a previously created authentication key file, used for connecting to the Coverity Connect server. Authentication keys can be registered with a Coverity Connect instance and used for authentication in place of the--userand--passwordoptions. See "Working with authentication keys" in the Coverity Platform User and Administrator Guide. <configuration-file>-
A .yaml file containing server configuration, Coverity Connect project, and other report-related parameters.
For detailed information about configuration values, please see the "Configuring report generators" section of the Configuring and Generating Coverity Reports and the README to which it refers.
--password <spec>-
(Required if
--auth-key-fileis not present.) Specifies how to provide your Coverity Connect password. The password<spec>has one of the following forms:console-
Tells Coverity Connect to prompt for the password from standard input. Coverity Connect does not echo the password characters.
file:<filename>- Tells Coverity Connect to read the password from the specified file.
Entering
file:-tells Coverity Connect to prompt for the file name from standard input. This is used with pipes and redirection. env:<variable>-
Tells Coverity Connect to read the password from the specified environment variable.
Examples
This command uses the config.yaml file to generate a CVSS Report in the MyReport.pdf file. If the Coverity Connect server provides a self-signed certificate, it will be trusted. The Coverity Connect server's password is provided from the value of an environment variable. The command also uses the Master_CWE_CVSS_Base_Score_Profile_V1.json file to update the scores in Coverity Connect.
cov-generate-cvss-report ../config/cvss-rpt-config.properties --on-new-cert trust
--output MyReport.pdf --password <env:PASSWORD_ENV_VAR>
--profile ../config/Master_CWE_CVSS_Base_Score_Profile_V1.json
--project foo --report --scores
This command uses the cvss-rpt-config.yaml file to generate a CVSS Report in the AnotherReport.pdf file. You will be prompted to enter the Coverity Connect server's password in the console.
cov-generate-cvss-report ../config/cvss-rpt-config.yaml --output AnotherReport.pdf
--password console --project project-name-2 --report