Bridge can create Fix Pull Requests from Polaris SCA scan results in CI workflows. Fix Pull Requests update dependency versions in a repository based on upgrade guidance from Polaris SCA scans on branches, e.g. main, develop, staging or release.
Note:
Fix PRs are intended for use with scans on monitored branches. If Fix PRs are enabled for a Pull Request scan, Bridge logs a warning and skips the Fix PR workflow:
fixPR is enabled, but this is a Pull Request scan. Will skip Fix PR workflow.
Prerequisites
- Bridge CLI 4.1.2 or newer
- Read the related information links:
- Using Fix Pull Requests with Bridge.
- Commands for integrating Bridge to connect with Polaris and a Source Code Management system to raise Fix Pull Requests.
- Prerequisites for Bridge to integrate with Polaris.
- Package managers supported by Detect for Component Location Analysis, e.g. NPM, Maven, Gradle, NuGet, Go modules etc.
- Access to a source code repository.
- To enable Bridge CLI to create Fix Pull Requests in a source code repository, an access token is required. This can be an ephemeral build token if Bridge CLI is used directly in a CI pipeline or a Personal Access Token (PAT) token.
- The following secrets are required:
Secret Description BRIDGE_POLARIS_ACCESSTOKENPolaris access token to enable Bridge CLI to integrate with a Polaris server. Access token Source Code Management system ephemeral build token or Personal Access Token (PAT) that allows Bridge to raise Fix Pull Requests. Consult related information to determine the Bridge environment variable for the appropriate SCM system, for example,
BRIDGE_GITHUB_USER_TOKENfor GitHub.
Instructions
Perform the following steps to use Fix Pull Requests with Bridge Polaris