Skip to content

av sast jobs

Show a project’s server-side SAST scan-job history - one row per job with its status, source repo, REDYELLOWGREEN counts, and when it was queued.

Terminal window
av sast jobs [flags]

av sast jobs lists the server-side (“scan it for me”) SAST jobs for a project, newest first as ordered by the API. You must be logged in (av login), and --project is required.

The table shows CREATED (as YYYY-MM-DD HH:MM), STATUS, REPO, the RED / YELLOW / GREEN finding counts, and the JOB ID. A job that has not finished yet shows - for its counts. The JOB ID column matches the IDs printed by av sast server-scan when it enqueues a scan.

--json prints the raw JSON payload instead of the table. --export writes the result to disk: a styled, self-contained HTML report, or the raw JSON when combined with --json. Pass a directory to get sast-scan-jobs.html (or .json) inside it, or a path with an extension to name the file yourself.

Flag Default Description
--project - Project ID (required)
--json false Output raw JSON instead of a table
--export - Export to a directory or file (HTML; raw JSON with --json)

Show a project’s scan-job history:

Terminal window
av sast jobs --project <projectId>

Get the history as JSON, for scripting or piping into jq:

Terminal window
av sast jobs --project <projectId> --json

Write a shareable HTML report to ./reports/sast-scan-jobs.html:

Terminal window
av sast jobs --project <projectId> --export ./reports
Code Meaning
0 Job history listed (or exported), even when it is empty
1 Not logged in, missing --project, or the API request failed