CLI commands for pipeline integration
The following includes various CLI commands used to integrate into any pipeline.
|
Purpose |
Command |
Action |
Breakdown |
|---|---|---|---|
| Installing FortiCNAPP CLI | curl https://raw.githubusercontent.com/lacework/go-sdk/main/cli/install.sh | bash
|
This command uses curl to download and run a shell script that installs the FortiCNAPP CLI. | N/A |
| Configuring and authenticating CLI commands | lacework configure -a LW_ACCOUNT -k LW_API_KEY -s LW_API_SECRET variable --noninteractive
|
Configures the FortiCNAPP CLI to authenticate with the FortiCNAPP platform using account details, an API key, and an API secret. |
|
| Install FortiCNAPP SCA component | lacework component install sca
|
Installs the Software Composition Analysis (SCA) component of the FortiCNAPP CLI. |
|
| Running SCA and SAST scans | lacework sca scan ./ -f lw-json -o /tmp/lacework-scan.json
|
Runs a Software Composition Analysis (SCA) scan on the current directory and outputs the results in JSON format. |
|
|
Compare results from two different scans |
|
Compares the results of two SCA scans to identify changes, such as new vulnerabilities introduced between versions of the code. |
|