Skip to main content

Set a Bitbucket repository environment variable

Environment variables added on the repository level can be accessed by any users with the push permission in the repository. You can set a repository environment variable to perform scans on each new build.

To complete this task:

  1. In Bitbucket, go to the repository you want to scan and select Settings > Pipelines > Environment variables.

  2. For Type variable, enter SRCCLR_API_TOKEN.

  3. For Type value, paste your API token.

  4. Verify the Secured checkbox is selected.

  5. Select Add.