Generate a PCI DSS report.
Synopsis
cov-generate-pci-dss-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 PCI DSS report generator uses analysis results for a Coverity Connect project to evaluate the analyzed codebase. Based on this evaluation, it creates a report, which details the assessments that were done, provides a summary of findings, and specifies the remediations needed. Information from this report is of special interest to application security assurance teams and their clients.
Options
Optional arguments:
--company-logo-
Path to the company logo file.
--help-
Display this help message and exit.
--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
cov-generate-pci-dss-report mydir/config.yaml --password console --project demo