CICD Integration - Using Falcon Scan CLI
Before scanning applications using Falcon Scan, make sure you have:
|
CICD Integration
-
Once the appropriate version of
Falcon Scan CLI
is downloaded, unzip the binaryunzip falcon-scan-cli-[VERSION]-[OS].zip
-
Navigate to the
bin
directory within falcon-scan-cli-[VERSION]-[OS] -
Run
falcon-scan-cli
command with following options-
-serviceHost=xxx
Falcon Scan service URL -
-authToken=xxx
Security token generated from the server -
-applicationKey=x.x
Unique id of the application / project being scanned -
-applicationName=.
Name of the application being scanned -
-source=xxx
Optional. Location of the project source directory. If ignored, current directory will be used as the project source directory -
-scmBranchName=xxx
Optional. SCM branch for which code is being analysed. If ignored, the default value will be `master` -
-DpullRequestId=xxx
_Optional.SCM Pull request name for which code is being analyzed -
-organization=xxx
Optional. Organization under which the project should be categorized. If ignored, the default organization will be used. Value can be any of Organization Name / Id / Ext Id
-
-
Complete example may look like
FALCON_SCAN_BIN_DIRECTORY> ./falcon-scan-cli -serviceHost <SERVICE URL> -authToken <SECURITY TOKEN> -applicationKey orders-eapi -source <PROJECT_ROOT_DIRECTORY> -applicationName="Orders EAPI"