Submitting scans

Updated on 2026-11-25

Upload, Git, CI, API, CLI.

Submission paths (as implemented)

MethodHowAuth
Portal uploadApp → version → Scan setup → upload ZIP → Run scan (scan-setup-workspace.tsx → POST /api/apps/{slug}/source-upload then POST /api/scans)Session cookie
Git connectApp settings / project form → VCS provider → clone in worker for connected reposSession + integration tokens
REST APIPOST /api/v1/scans with optional sourceUploadIdAuthorization: Bearer sec_…
CLIsecuraro scan -a <app> --token … → same APIAPI key
CI webhookPOST /api/ci/webhookAPI key
GitHub AppPOST /api/github/webhook → enqueue on PR/pushGitHub signature
Offline importPOST /api/v1/scans/import after air-gapped worker runAPI key

There is no server-side “paste GitHub ZIP URL” API — you upload the file or connect Git.

Portal upload (step by step)

  1. Apps → open app → Versions → open version.
  2. Scan setup — enable SAST / SCA / DAST.
  3. Upload source — choose .zip / .tar.gz (max size per Preparing payloads).
  4. Note uploadId in the UI (returned as uploadId from source-upload).
  5. Run scan — portal posts to POST /api/scans with projectId, 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 --> [*]
StatusMeaning
QUEUEDCreated, waiting for worker
RUNNINGEngines executing
COMPLETEDFinished successfully
INCOMPLETEPartial results (budget or engine skip)
FAILEDHard failure

Gate status (PENDING / PASSED / WARNED / FAILED) is evaluated separately for CI gates.

Where results appear

SurfaceContent
ScansScore, duration, gate, mix of SAST/SCA/DAST
Version → scan detailFindings list, stages
IssuesTriage workflow, assignments
ReportsScheduled / compliance exports
CLI / APIcounts, findings, SARIF in --out-dir

Next: Portal guide · Integrations.

Documentation | Securaro