Check your code before you release it
Add Cyber Guardian Scan to your own pipeline. API keys use the same account, plan and scans as the website and Claude.
Loading...
Sign in to create API keys
API keys belong to your account. Sign in on the website, then come back to this page.
Sign inSomething went wrong
Please try again.
API keys
A key lets a script or CI job scan code as you. Keep it secret.
Your new key
Copy it now. It is shown only once.
| Name | Key | Access | Created | Last used | Expires | Status |
|---|
You have no API keys yet.
Quick start
- Create a key above and copy it.
- Save it as a secret named CG_API_KEY in your CI settings.
- Run the release gate in your pipeline.
GitHub Actions example
Download the script, check its fingerprint, then run it.
.github/workflows/security-gate.yml
Script SHA-256:
Direct API call
curl
Reference
Send your key in the Authorization header.
POST /api/v1/scan | Scan code |
GET /api/v1/usage | Your plan and scans remaining |
GET /api/v1/scans | Your scan history |
What the result contains
Exit codes of the script
0 | |
1 | |
2 | |
3 |
