This manual page describes built-in fcli actions that can be run through
the fcli action run <action-name>
command.
ci
(PREVIEW) Run CI pipeline
Synopsis
fcli generic_action action run ci [fcli generic_action action run options] [action options, see below]
Description
This action can be used to run a full, standardized CI pipeline that performs the following activities:
-
Create & configure SSC application version / FoD release if needed
-
Install ScanCentral Client for packaging
-
Package source code using ScanCentral Client
-
Submit SAST scan request
-
Wait for SAST scan completion
-
Perform post-scan activities, like checking security policy outcome, exporting results, …
Configuration for this fcli action is done through environment variables; the sections below list the environment variables supported by this action.
Fortify on Demand
Environment Variable | Description |
---|---|
FOD_URL |
Fortify on Demand URL, for example |
FOD_CLIENT_ID |
Required when authenticating with an API key: Fortify on Demand Client ID (API key) and Secret (API secret). |
FOD_TENANT |
Required when authenticating with user credentials: Fortify on Demand tenant, user and password. It is recommended to use a Personal Access Token instead of an actual user password. |
FOD_LOGIN_EXTRA_OPTS |
Extra login options, for example for disabling SSL checks or changing connection time-outs; see |
FOD_RELEASE |
Fortify on Demand release to use with this action. This should be specified as |
DO_SETUP |
If |
PACKAGE_ACTION |
By default, when running a SAST scan, the fcli package action is used to (optionally) package the source code to be scanned; see next entry for information on how to configure the default package action. If the standard fcli package action doesn’t meet your needs, for example if you want to perform a local translation using Fortify Static Code Analyzer, you can use |
USE_PACKAGE |
These environment variables define packaging behavior. If |
DO_SAST_SCAN |
For now, this fcli action only supports running a SAST scan, which is enabled by default. The |
DO_RELEASE_SUMMARY |
If |
DO_CHECK_POLICY |
If |
DO_PR_COMMENT |
(PREVIEW) If |
DO_SAST_EXPORT |
If |
Fortify Software Security Center
Environment Variable | Description |
---|---|
SSC_URL |
Software Security Center (SSC) URL, for example |
SSC_TOKEN |
Required when authenticating with an SSC token (recommended). Most actions should work fine with a CIToken. |
SSC_USER |
Required when authenticating with SSC user credentials. |
SC_SAST_TOKEN |
ScanCentral SAST Client Authentication Token for authenticating with ScanCentral SAST Controller. This environment variable is required when running a ScanCentral SAST scan. |
SSC_LOGIN_EXTRA_OPTS |
Extra SSC login options, for example for disabling SSL checks or changing connection time-outs; see |
SSC_APPVERSION |
Fortify SSC application version to use with this action. This should be specified as |
DO_SETUP |
If |
PACKAGE_ACTION |
By default, when running a SAST scan, the fcli package action is used to (optionally) package the source code to be scanned; see next entry for information on how to configure the default package action. If the standard fcli package action doesn’t meet your needs, for example if you want to perform a local translation using Fortify Static Code Analyzer, you can use |
USE_PACKAGE |
These environment variables define packaging behavior. If |
DO_SAST_SCAN |
For now, this fcli action only supports running a SAST scan, which is enabled by default. The |
DO_APPVERSION_SUMMARY |
If |
DO_CHECK_POLICY |
If |
DO_PR_COMMENT |
(PREVIEW) If |
DO_SAST_EXPORT |
If |
ci-vars
(PREVIEW) Collect CI-specific data
Synopsis
fcli generic_action action run ci-vars [fcli generic_action action run options] [action options, see below]
Description
This action collects data used by the SSC & FoD 'ci' actions, based on CI-specific data like CI-specific environment variables. Data is collected in a CI-agnostic global variable named 'ci'. Note that available properties on the global 'ci' variable may change across fcli releases, potentially breaking any custom actions that depend on these properties.
package
(PREVIEW) Package source code
Synopsis
fcli generic_action action run package [fcli generic_action action run options] [action options, see below]
Description
This action can be used to package source code using ScanCentral Client. It will take care of installing the specified ScanCentral Client version, followed by executing the 'scancentral package' command using the specified ScanCentral Client version.
Options
- --use-package
-
Use an existing package file instead of trying to package the given source code directory. If specified, this ignores all other options.
- --sc-client-version, -v
-
Specify the ScanCentral Client version to be used for packaging. Defaults to the value of the SC_CLIENT_VERSION environment variable, or 'latest' if not specified.
- --source-dir, -d
-
Specify the source directory to be packaged. Defaults to the value of the SOURCE_DIR environment variable, or current working directory if not specified.
- --debug
-
Add the -debug flag to the ScanCentral Client command. Defaults to the value of the DO_PACKAGE_DEBUG environment variable, or false if not specified.
- --tool-definitions
-
Custom tool definitions to use for identifying available ScanCentral Client versions and download URLs. Defaults to the value of the TOOL_DEFINITIONS environment variable, or the built-in default if not specified.
- --extra-opts
-
Extra options to be passed to the 'scancentral package' command. Defaults to the options specified in the EXTRA_PACKAGE_OPTS environment variable, or no extra options if not specified.
- --output, -o
-
Name of the zip file in which packaged source code should be stored. Defaults to package.zip in the current working directory.