Configure Bridge CLI to create and manage repository issues from Polaris SAST and SCA findings. Development teams can quickly identify, track and remediate security issues directly within existing workflow tools.
Critical and High), assessment types (SAST, SCA or both) and the maximum number of issues to create per scan.For SCA findings, issues can optionally be grouped by component-version pair, allowing multiple related vulnerabilities affecting the same component to be tracked in a single issue rather than creating separate issues for each vulnerability.
Prerequisites
- The following reading is recommended before starting:
- Access to a Polaris server with permission granted to create access tokens and projects.
- Access to a source code repository.
- A Polaris access token or service account token to allow integration with a Polaris server instance.
- Admin access to a GitHub source code repository.
- To enable Bridge CLI to create external source code repository issues an access token is required. Currently, issues can be created in GitHub repositories with support for GitHub Access Tokens:
- Fine grained tokens require the
Issuespermission withread/writeaccess. - GitHub classic tokens require the
reposcope.
- Fine grained tokens require the
-
Use the tables below to identify the parameters and secrets required for raising external issues from Polaris scans.
List of parameters for raising external issues from Polaris scans
| Parameter | Description | Required |
|---|---|---|
| --stage | Use to specify that Bridge CLI integrates with Polaris. | Mandatory |
| polaris.serverurl | Polaris server URL. | Mandatory |
| polaris.application.name | Name for Polaris application. The specified application must exist on Polaris with appropriate entitlements. | Mandatory |
| polaris.assessment.types | List of Polaris test assessment types:
|
Mandatory |
| polaris.project.name | Name for Polaris project. If the project doesn't exist it will be created. | Mandatory |
| polaris.branch.name | Branch name in the Polaris server. If the branch doesn't exist it will be created. | Mandatory |
| polaris.externalIssues.create | Set to true to enable creation of external repository issues from scan findings. Default is false. |
Mandatory (set to true to enable creation of external issues ) |
| polaris.externalIssues.severities | List of severities for which repository issues should be created. Default: ["Critical", "High"]. |
Optional |
| polaris.externalIssues.types | List of assessment types for which repository issues should be created. Acceptable values: SAST, SCA. |
Optional |
| polaris.externalIssues.groupSCAIssues | Set to true to group SCA issues by vulnerabilities of a component-version pair when creating repository issues. Set to false to create separate issues for each vulnerability. Default: true. |
Optional |
| polaris.externalIssues.maxCount | Maximum number of repository issues to create per scan. Default: 10. |
Optional |
| project.directory |
If Use this parameter to specify the absolute path to the source code directory when the source is not available in the current working directory. |
Optional |
List of secrets required for raising external issues from Polaris scans
| Description | |
|---|---|
BRIDGE_POLARIS_ACCESSTOKEN |
Polaris access token to enable Bridge CLI to integrate with a Polaris server. |
BRIDGE_GITHUB_USER_TOKEN |
Repository access token to allow Bridge CLI to create external repository issues. |
Bridge CLI provides configuration parameters for integration with external source code repositories. Support for creating external repository issues is provided for GitHub repositories.