Configure your GitLab CI environment variable
Setting an environment variable in GitLab CI occurs on a per-repository basis. This example demonstrates how to create a variable for your API token.
To complete this task:
-
In your GitLab environment, select the project you want to scan.
-
Go to Settings > CI/CD.
-
Select Expand in the Variables section.
-
For Key, enter
SRCCLR_API_TOKEN
. -
For Value, enter your Veracode SCA API token.
-
Select the State and Masked values you want for your variable.
Veracode recommends masking the variable and, if you use protected variables, protecting it.
-
Select Save variables.
Next steps:
You can create an environment variable for your project URL to allow the enabling of automatic pull requests.