You can also pass arguments on the command line as an alternative to passing arguments using a JSON file.
Here are the steps:
- Create an access token in the web interface of the Black Duck security product you are integrating with.
- Use environment variable(s) to pass sensitive information such as password or
access token to Bridge CLI (recommended for security
purposes). Bridge CLI automatically picks up values
passed through these variables.
- Example:
export BRIDGE_POLARIS_ACCESSTOKEN=<POLARIS_ACCESSTOKEN>
- Example:
- Pass the necessary command line arguments as shown in the example below.
export BRIDGE_POLARIS_ACCESSTOKEN="<POLARIS_ACCESSTOKEN>"
bridge-cli --stage polaris polaris.project.name="<PROJECT_NAME>" \
polaris.application.name="<APPLICATION_NAME>" \
polaris.assessment.types=SAST,SCA \
polaris.serverurl="<POLARIS_SERVERURL>"For a complete list of environment variables and command line arguments, see Complete list of Bridge arguments.
See Schema Resources and Extensions for Bridge CLI resources.
For tool specific information and examples, see: