Set the Bitbucket account environment variable
You can set the environment variable for Veracode Software Composition Analysis (SCA) agent-based scanning at either the account or repository levels.
To complete this task:
In Bitbucket, go to Account > Bitbucket Settings.
Select an individual account or a team for which you want to configure variables.
From the left navigation menu, select Pipelines > Environment variables.
In the Type variable field, enter
SRCCLR_API_TOKEN
.In the Type value field, paste your API token.
Verify the Secured checkbox is selected.
Click Add.