curl --request GET \
--url https://app.trustivan.com/api/v1/scans/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/scans/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/scans/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/scans/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Read one scan
The endpoint a pipeline polls. database_state reports how fresh the
advisory data behind the result was: a scan against stale data
reports “no vulnerabilities” with the same confidence as a correct one.
A running dynamic scan also reports progress (0 to 100) and phase
(what it is doing, in words). cancel_requested_at is set between a
cancel request and the worker stopping. A scan that was stopped ends
with status canceled.
For a container image scan, signature_verification holds what the
scan established about the image’s cosign signatures and attestations:
status (verified, unverified, unsigned or unknown), the
digest checked, the trusted_keys it was checked against, and each
signature and attestation with the key that verified it. The field is
absent when no check was made.
checks_run names the groups of checks a dynamic scan actually ran
(zap-passive, zap-active, tls, injection, jwt), and
incomplete is true when the scan stopped short of a full scan of its
kind (passive checks only, or its time limit). Both are empty and false
on a scan from before they were recorded.
curl --request GET \
--url https://app.trustivan.com/api/v1/scans/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/scans/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/scans/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/scans/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
One scan.
The response is of type object.