Bridge CLI can be used to run Signal to perform a diff scan of uncommitted, tracked files in a Git project directory.
Black Duck Signal provides the UNCOMMITTED scan mode to perform a diff scan of uncommitted tracked files. The Signal adapter configures Git diff-based analysis for the Git repository located at the project directory.
Prerequisites
The following prerequisites are required to run a diff scan:
- Bridge CLI is installed and available on the system PATH.
- Access to a
Gitproject directory. - There are changes in uncommitted, tracked files.
- A valid Signal LLM API key.
Running a diff scan
-
Download the latest version of Bridge, if you haven't installed it already.
https://repo.blackduck.com/bds-integrations-release/com/blackduck/integration/bridge/binaries/bridge -
Add Bridge to your
$PATHvariable. -
Save a valid LLM API key in the
BRIDGE_SIGNAL_LLM_KEYenvironment variable.export BRIDGE_SIGNAL_LLM_KEY=<LLM_API_KEY> -
Run the Bridge CLI Signal workflow at the root level of your project.
bridge-cli --stage signal \ signal.mode=UNCOMMITTEDBridge will use the configuration to start Signal to perform a diff scan of uncommitted changes. When the scan has completed, the following outputs will be provided:
-
A SARIF report file will be generated at
.bridge/signal-controller/results.sarifwithin the current working directory where Bridge CLI was called from. -
An exit code of
0will be issued to signal success.
-
Signal CLI commands quick reference
The following parameters enable further customization. Use the related links information section to access the reference guide for the commands.
| CLI Argument | Description |
|---|---|
project.directory |
By default Black Duck Signal scans the files and folders in the current working directory. This behavior can be overridden by specifying the absolute path for the project.directory argument. |
signal.version |
By default Bridge downloads the latest version of Signal from the Black Duck repository. This behavior can be overridden by specifying a version string, e.g. 0.2.9. |
signal.args |
Specify additional arguments to be passed directly to Signal, e.g. "--dataflow true --log-level debug". |
signal.git.execution.path |
By default Signal uses the Git binary accessible from the system PATH. This behavior can be overridden by specifying the absolute path to the Git binary using the signal.git.execution.path argument. |