In Bridge CLI workflows, Polaris multi version SAST support lets organizations control which supported Coverity version is used to run a local or hybrid SAST scan. This is applicable to SAST full and rapid scan types.
Bridge can accept a coverity.version parameter, or use a version from Polaris tool settings and recommended defaults. Polaris then selects the appropriate Coverity and associated Sigma versions for full and Rapid scans, ensuring consistent analysis behavior while still allowing staged upgrades and rollbacks.
Please review Polaris multi version SAST tool support with Bridge for basic requirements.
coverity.version parameter applies only to hybrid and local SAST scan modes. Remote scan modes use the Coverity version configured in the Polaris Web UI.Prerequisites
- Access to a Polaris server with permission granted to create access tokens and projects.
- A Polaris access token or service account token to allow integration with a Polaris server instance.
- The following parameters are required:
Table 1. List of mandatory parameters for selecting a Coverity version Input parameter Description Mandatory / optional BRIDGE_POLARIS_ACCESSTOKENEnvironment variable containing Polaris access token. Use either a user access token (created in the Polaris UI) or a service account token token
Mandatory --stageUse to specify that Bridge integrates with Polaris. Mandatory polaris.serverurlPolaris server URL. Mandatory polaris.application.nameName for Polaris application. The specified application must exist on Polaris with appropriate entitlements. Mandatory polaris.project.nameName of Polaris project. If the project does not exist on Polaris, it will be created. Set polaris.onboardingtofalseto prevent this behavior.Mandatory polaris.branch.nameBranch name in the Polaris server. Bridge will raise an error if a branch name is not provided. If the branch does not exist in Polaris, Bridge will create the branch. Set
polaris.onboardingtofalseto prevent this behavior.Mandatory polaris.assessment.typesSpecifies the type of test to be run: SASTSAST,SCA
Mandatory polaris.test.sast.locationConfigure the location where source code should be captured, built and analyzed for a SAST assessment type. Default:
hybridAcceptables values:- hybrid
- local
- remote
For further details refer to Complete List Of Bridge Commands
Optional Important: SAST scans for remote assessment modes will use the Coverity version configured in the Polaris Web UI.polaris.test.sast.typeThis parameter allows a full SAST scan, or a rapid SAST scan to be run. If this parameter is not set, the default value will be used. Default:
SAST-FULLAcceptable values:SAST-FULLSAST-RAPID
Bridge automatically selects a compatible Sigma version for Rapid scans.
Optional (This parameter is optional forSAST-FULLscans, but it is mandatory forSAST-RAPIDscans.)Important: Before testing a project with Rapid Scan Static, a full SAST test (using the latest version of Coverity that Polaris supports) must be completed. If an attempt is made to run a rapid scan before a full SAST test is completed, Bridge starts a full SAST scan automatically. The full SAST scan must be run with the latest version of Coverity that Polaris supports. This ensures the project has the necessary baseline before performing rapid scans.coverity.versionSelect the Coverity version for SAST local or SAST hybrid scans. Default: Bridge uses the version configured on Polaris Web UI for the application, project or branch being scanned.
Acceptable Values: Versions of Coverity that are supported on Polaris (including deprecated versions).
Example:
2025.6.2For further details see
Polaris multi version SAST tool support with BridgeOptional Important: Bridge CLI returns an error if an unsupported version is requested.
Instructions
Follow the steps below to select a Coverity version with Bridge CLI.
- Make the Polaris access token available as an environment variable.
export BRIDGE_POLARIS_ACCESSTOKEN=<POLARIS_ACCESSTOKEN> - Use the Bridge CLI to select a Coverity version. Example:
bridge-cli --stage polaris \ coverity.version="2025.6.2" \ polaris.serverurl=$(POLARIS_SERVERURL) \ polaris.assessment.types=SAST \ polaris.application.name=$(POLARIS_APPLICATION_NAME) \ polaris.project.name=$(POLARIS_PROJECT_NAME) \ polaris.branch.name="main"- Run Bridge CLI with the
--stageargument set topolaris. - Use
polaris.serverurlto specify the base URL for a Polaris server instance. - Use
polaris.assessment.typesto specify that a SAST scan should run. - Use
polaris.application.nameto specify the name of the application to create. - Use
polaris.project.nameto specify the name of the project to create. - Use
polaris.branch.nameto specify the name of the branch to create. - Use
coverity.versionto specify that Coverity version2025.6.2should be used to perform the SAST scan. - Defaults:
polaris.test.sast.location(hybrid): Source code and build will be captured locally and uploaded to the Polaris platform for analysis.polaris.test.sast.type(SAST-FULL): A full SAST scan will run.
- Run Bridge CLI with the
- When the scan completes successfully, the results will be available in the Polaris dashboard.