Run an AI-driven security assessment on local files or directories in a project using Bridge CLI and Signal. The scanned files and folders can be controlled using include and optional exclude path lists.
Signal provides a FILES scan mode that performs an AI assessment of specified files and directories in a project, independent of Git history. The scanned files and folders are controlled using include and optional exclude path lists. Scans can be run using either the default 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 project directory containing the files to scan.
- 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 local files scan with Black Duck LLM
Follow the steps to run a local files scan 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 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 configuring the Black Duck LLM.
Run the Bridge CLI Signal workflow at the root level of the project.
bridge-cli --stage signal \ signal.mode=FILES \ signal.include="src/main,src/dev,pom.xml" \ signal.exclude="src/dev/resources/generated"Bridge starts Signal to perform an AI assessment of the specified files and folders. 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 local files scan with BYOLLM
Follow the steps to run a local files scan 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": "FILES", "include": "src/main,src/dev,pom.xml", "exclude": "src/dev/resources/generated" }, "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.