Run an AI-driven security assessment on uncommitted, tracked files in a Git project directory using Bridge CLI and Signal.
Signal provides an UNCOMMITTED scan mode that performs a diff scan of uncommitted, tracked files. The Signal adapter configures Git diff-based analysis for the Git repository located at the project directory. Scans can be run using either the Black Duck LLM or an organization-hosted LLM provider (BYOLLM).
This task is for Bridge CLI users. For more details, see Bridge CLI Overview.
Prerequisites
The following prerequisites are required for both managed LLM and Bring Your Own Large Language Model (BYOLLM) workflows:
- Bridge CLI is installed and available on the system PATH.
- Access to a Git project directory with uncommitted, tracked file changes.
- A Signal Enterprise or Developer subscription.
Depending on the LLM, the following additional prerequisites apply:
- Black Duck LLM:
- A valid API key for the Black Duck LLM.
- BYOLLM:
- Credentials for the configured BYOLLM provider, stored securely in environment variables or CI/CD secrets.
- Refer to the Signal compatibility matrix to identify the recommended models for each Signal agent across supported LLM providers.
Run uncommitted scan with Black Duck LLM
Follow the steps to run a diff scan of uncommitted changes using the Black Duck LLM:
Download the latest version of Bridge, if not already installed. To download, see Bridge Binaries Download.
Add Bridge to your
$PATHvariable.Set the following environment variables for the Black Duck LLM in the shell or CI/CD environment where the scan will execute:
export BRIDGE_LLM_PROVIDER_BLACKDUCK_KEY=<LLM_API_KEY> export BRIDGE_LLM_PROVIDER_BLACKDUCK_DEFAULT=trueSee Configure Black Duck LLM for more details on managed mode configuration.
Run the Bridge CLI Signal workflow at the root level of the project.
bridge-cli --stage signal \ signal.mode=UNCOMMITTEDBridge starts Signal to perform a diff scan of uncommitted changes. When the scan completes, the following outputs are provided:
A SARIF report file is generated at
.bridge/signal-controller/results.sarifwithin the current working directory where Bridge CLI was called.An exit code of
0indicates success.
Run uncommitted scan with BYOLLM
Follow the steps to run a diff scan of uncommitted changes using a BYOLLM configuration:
Download the latest version of Bridge, if not already installed. To download, see Bridge Binaries Download.
Add Bridge to your
$PATHvariable.Create a Bridge JSON configuration file (
input.json) that defines thesignalscan parameters alongside thellmprovider configuration:{ "data": { "signal": { "mode": "UNCOMMITTED" }, "llm": { /* Populate with your BYO LLM provider, tier, and agent settings */ } } }For instructions on populating the
llmblock with provider endpoints, model tiers, and agent settings, see Configure Bring Your Own Large Language Model (BYOLLM).Run the Bridge CLI Signal workflow, passing the configuration file with the
--inputargument:bridge-cli --stage signal --input input.jsonBridge validates the BYOLLM configuration and invokes Signal that then performs preflight checks against the configured LLM endpoints before starting the scan. When the scan completes, the following outputs are provided:
A SARIF report file is generated at
.bridge/signal-controller/results.sarifwithin the current working directory where Bridge CLI was called.An exit code of
0indicates success.