CI Mode Authentication
For automated environments like CI/CD pipelines, DepFixer supports API key authentication via environment variables.Setup
1. Generate API Key
- Log in to app.depfixer.com
- Go to Settings → API Keys
- Click Generate New Key
- Copy the key (shown only once)
2. Add to CI Environment
Store the key as a secret in your CI platform. GitHub Actions:- Go to Settings → Secrets and variables → Actions
- Click New repository secret
- Name:
DEPFIXER_TOKEN - Value: Your API key
- Go to Settings → CI/CD → Variables
- Add variable with key
DEPFIXER_TOKENand mask it
3. Use in Pipeline
DEPFIXER_TOKEN when --ci flag is present.
GitHub Actions Example
GitLab CI Example
Exit Codes
| Code | Meaning | Pipeline |
|---|---|---|
0 | No critical/high issues | Pass |
1 | Critical or high issues found | Fail |
2 | Error (auth, network) | Fail |
CI Output
JSON Output
For parsing in scripts:Security Best Practices
- Never commit API keys - Use environment variables
- Rotate keys periodically - Generate new keys quarterly
- One key per purpose - Separate keys for CI, scripts, etc.
- Monitor usage - Check key activity in dashboard