Configuration¶
Global Flags¶
| Flag | Environment Variable | Description |
|---|---|---|
--org |
DRAPE_ORG |
Organization slug (taken from the OIDC token when no API key is set) |
--repo |
DRAPE_REPO |
Repository name, auto-detected from CI. With an OIDC token, it must match the token's repository |
--api-key |
DRAPE_API_KEY |
API key. Optional in GitHub Actions with id-token: write, where the CLI uses the job's OIDC token. A key always wins |
--api-url |
DRAPE_API_URL |
API base URL (default: https://api.drape.io) |
--verbose |
Enable verbose logging | |
--dry-run |
Check each report against its format locally, don't upload. An unsupported --format exits 2 and a report that doesn't match its format exits 5 |
CI Auto-Detection¶
The CLI automatically detects branch, commit SHA, PR number, and target branch from these CI providers:
| Provider | Detected |
|---|---|
| GitHub Actions | Branch, SHA, PR number, target branch |
| GitLab CI | Branch, SHA, merge request IID, target branch |
| CircleCI | Branch, SHA, PR number |
| Buildkite | Branch, SHA, PR number |
| Jenkins | Branch, SHA |
| Azure Pipelines | Branch, SHA, PR number |
| Travis CI | Branch, SHA, PR number |
| Bitbucket Pipelines | Branch, SHA, PR number |
| Local git | Branch, SHA (fallback) |
All auto-detected values can be overridden with explicit flags.