Skip to main content

CI Mode Authentication

For automated environments like CI/CD pipelines, DepFixer supports API key authentication via environment variables.

Setup

1. Generate API Key

  1. Log in to app.depfixer.com
  2. Go to Settings → API Keys
  3. Click Generate New Key
  4. Copy the key (shown only once)

2. Add to CI Environment

Store the key as a secret in your CI platform. GitHub Actions:
  1. Go to Settings → Secrets and variables → Actions
  2. Click New repository secret
  3. Name: DEPFIXER_TOKEN
  4. Value: Your API key
GitLab CI:
  1. Go to Settings → CI/CD → Variables
  2. Add variable with key DEPFIXER_TOKEN and mask it

3. Use in Pipeline

The CLI automatically uses DEPFIXER_TOKEN when --ci flag is present.

GitHub Actions Example

GitLab CI Example

Exit Codes

CI Output

JSON Output

For parsing in scripts:

Security Best Practices

  1. Never commit API keys - Use environment variables
  2. Rotate keys periodically - Generate new keys quarterly
  3. One key per purpose - Separate keys for CI, scripts, etc.
  4. Monitor usage - Check key activity in dashboard