| [ Web Proxy ] |
| Viewing: https://docs.socket.dev/docs/create-socket-api-key-for-cicd | [Back] [Original] |
You can either create your API key yourself if you have permissions in your socket.dev account or you can have your Admin create it for you with the scopes listed below. (See Notes section below for the environment variable usages)
Log into the socket.dev dashboard
Go to Settings
Go to the API Tokens tab
Select Create API Token
Give the token a name like CI/CD API Key
Select the following scopes
repo
security-policy
Triage
triage:alerts-list
triage:alerts-update
full-scans
packages
Click Confirm
Click on Show key
Click on the API Key Token to copy
Notes:
SOCKET_SECURITY_API_KEY or SOCKET_SECURITY_API_TOKEN (it also accepts SOCKET_API_KEY / SOCKET_API_TOKEN, or the --api-token flag). These work the same whether you run the CLI locally or in a CI/CD integration (GitHub Actions, GitLab, Bitbucket, Jenkins, Azure DevOps).SOCKET_SECURITY_API_KEY takes precedence. The CI/CD examples in these docs use SOCKET_SECURITY_API_KEY.Updated 3 months ago
| Web Proxy Viewer | New URL | Original Page |