Configure an API Credentials File on macOS or Linux
You can configure a Veracode API credentials file on macOS or Linux and, optionally, run a command to restrict access to the file.
Before you begin:
- You have generated Veracode API credentials.
- Depending on your Veracode integration, you have added your Veracode API credentials to the
[default]application profile. If you have an existing
[greenlight]profile, delete it or rename it to
To complete this task:
On the command line, navigate to the folder for your username. For example,
Run this command to create the
$ mkdir .veracode
Navigate to the
.veracodefolder. For example:
$ cd .veracodenote
macOS immediately hides the
.veracodefolder because the folder name begins with a period.
Run this touch command to create the
$ touch credentials
Open the Finder to
credentialsfile to open it in a text editor.
Copy this text and paste it into the
veracode_api_key_id = Your API ID
veracode_api_key_secret = Your API key
The spaces around the equals sign (=) are not required.
Replace the values with your Veracode API credentials.
Optionally, you can run the following command to restrict access to the
chmod 600 ~/.veracode/credentials