Configure API credentials as environment variables on macOS and Linux
You can store your Veracode API credentials as environment variables on macOS, Linux, or UNIX. You can use either an API credentials file or environment variables, but not both.
Before you begin:
- You have generated Veracode API credentials.
- Depending on your Veracode integration, you have added your API credentials to the
[default]
application profile. If you have an existing[greenlight]
profile, delete it or rename it to[default]
.
To complete this task:
At a command prompt, run the following commands, replacing the values with your API ID and key:
$ export VERACODE_API_KEY_ID={your_api_key_id}
$ export VERACODE_API_KEY_SECRET={your_api_secret_key}