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.
Synopsis
Section titled “Synopsis”av sast jobs [flags]Description
Section titled “Description”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.
Options
Section titled “Options”| 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) |
Examples
Section titled “Examples”Show a project’s scan-job history:
av sast jobs --project <projectId>Get the history as JSON, for scripting or piping into jq:
av sast jobs --project <projectId> --jsonWrite a shareable HTML report to ./reports/sast-scan-jobs.html:
av sast jobs --project <projectId> --export ./reportsExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
Job history listed (or exported), even when it is empty |
1 |
Not logged in, missing --project, or the API request failed |
See also
Section titled “See also”av sast server-scan- enqueue the server-side scans this command reports onav sast findings- pull the consolidated findings the server holds for a projectav sast scan- run the engines locally, free and unlimited