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.
Click Expand in the Variables section.
In the Key field, enter
In the Value field, 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.
Click Save variables.
You can create an environment variable for your project URL to allow the enabling of automatic pull requests.