Submission paths (as implemented)
| Method | How | Auth |
|---|---|---|
| Portal upload | App → version → Scan setup → upload ZIP → Run scan (scan-setup-workspace.tsx → POST /api/apps/{slug}/source-upload then POST /api/scans) | Session cookie |
| Git connect | App settings / project form → VCS provider → clone in worker for connected repos | Session + integration tokens |
| REST API | POST /api/v1/scans with optional sourceUploadId | Authorization: Bearer sec_… |
| CLI | securaro scan -a <app> --token … → same API | API key |
| CI webhook | POST /api/ci/webhook | API key |
| GitHub App | POST /api/github/webhook → enqueue on PR/push | GitHub signature |
| Offline import | POST /api/v1/scans/import after air-gapped worker run | API key |
There is no server-side “paste GitHub ZIP URL” API — you upload the file or connect Git.
Portal upload (step by step)
- Apps → open app → Versions → open version.
- Scan setup — enable SAST / SCA / DAST.
- Upload source — choose
.zip/.tar.gz(max size per Preparing payloads). - Note
uploadIdin the UI (returned asuploadIdfrom source-upload). - Run scan — portal posts to
POST /api/scanswithprojectId,scanKind,sourceUploadId,versionSlug.
REST API
Start scan — POST /api/v1/scans
export SECURARO_API_URL="https://your-tenant.example"
export SECURARO_API_KEY="sec_…"
curl -sS -X POST "$SECURARO_API_URL/api/v1/scans" \
-H "Authorization: Bearer $SECURARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"appSlug": "storefront",
"versionSlug": "main",
"scanKind": "all",
"scanDepth": "quick",
"sourceUploadId": "OPTIONAL_UPLOAD_ID",
"async": false
}'
List recent scans — GET /api/v1/scans
Poll one scan — GET /api/v1/scans/{scanId} (CLI polls until COMPLETED or FAILED; API sync mode waits internally with timeout).
Upload for API workflow
curl -sS -X POST "$SECURARO_API_URL/api/apps/storefront/source-upload" \
-H "Cookie: …" \
-F "[email protected]"
(Session cookie from browser, or use upload in portal then pass uploadId to API.)
CLI
docker run --rm -e SECURARO_API_URL -e SECURARO_API_KEY -e SECURARO_APP \
ghcr.io/muralipdl527/securaro-cli:1.0.0 \
scan -a storefront -v main --fail-on high --format sarif --out-dir ./securaro-out
See CLI reference.
CI/CD
Templates live under integrations/ (GitHub Actions composite action, GitLab CI include, Azure task, Jenkins shared library, etc.). In-app: Tools & Integrations → CI/CD.
Example GitHub Actions inputs mirror integrations/github-actions/scan-action/action.yml (api-url, project, token, scan-type, fail-on, …).
Scan lifecycle
stateDiagram-v2
[*] --> QUEUED: enqueueScan
QUEUED --> RUNNING: worker picks up
RUNNING --> COMPLETED: success
RUNNING --> INCOMPLETE: time/engine budget
RUNNING --> FAILED: error
COMPLETED --> [*]
FAILED --> [*]
INCOMPLETE --> [*]
| Status | Meaning |
|---|---|
QUEUED | Created, waiting for worker |
RUNNING | Engines executing |
COMPLETED | Finished successfully |
INCOMPLETE | Partial results (budget or engine skip) |
FAILED | Hard failure |
Gate status (PENDING / PASSED / WARNED / FAILED) is evaluated separately for CI gates.
Where results appear
| Surface | Content |
|---|---|
| Scans | Score, duration, gate, mix of SAST/SCA/DAST |
| Version → scan detail | Findings list, stages |
| Issues | Triage workflow, assignments |
| Reports | Scheduled / compliance exports |
| CLI / API | counts, findings, SARIF in --out-dir |
Next: Portal guide · Integrations.