Start an SCA rescan from the latest saved SBOM
Uses the newest default-branch scan with a saved SBOM, even if a newer scan has only other reports. Runs SCA in CI using that SBOM and its commit, and saves results in a new scan. No request body is needed. Returns after CI accepts the run; results will arrive later.
Request
POST
https://appsec.sourcecraft.tech/v1/scans/sca
Query parameters
|
Name |
Description |
|
gitRepo |
Type: string Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid). Pattern: Example: |
Responses
202 Accepted
CI accepted the SCA rescan
Body
application/json
{
"scanUuid": "example",
"fluxId": "example",
"status": "INITIATED"
}
|
Name |
Description |
|
fluxId |
Type: string ID of the CI run started for this scan Example: |
|
scanUuid |
Type: string UUID of the new scan that will receive the SCA results Example: |
|
status |
Type: string The scan is running; results will arrive later Const: Example: |
400 Bad Request
Missing or blank gitRepo
401 Unauthorized
Missing or invalid authorization header
403 Forbidden
Permission denied or SCA scanning is disabled
404 Not Found
Repository or saved default-branch SBOM not found
409 Conflict
The source scan is still running
500 Internal Server Error
Failed to prepare the SCA rescan
502 Bad Gateway
CI could not start SBOM enrichment
503 Service Unavailable
No SCA engines are configured