List pipeline gate runs
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates/gates \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/gates"
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/certificates/gates', 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/certificates/gates"
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))
}{
"gates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"repository": "<string>",
"ref": "<string>",
"commit": "<string>",
"run_url": "<string>",
"failed": true,
"results": [
{
"host": "<string>",
"port": 123,
"file": "<string>",
"object": "<string>",
"sha256": "<string>",
"error": "<string>",
"not_after": "2023-11-07T05:31:56Z",
"issuer": "<string>",
"failed": true,
"findings": [
{
"check": "<string>",
"severity": "low",
"title": "<string>",
"evidence": "<string>"
}
]
}
],
"fingerprints": [
"<string>"
],
"failed_fingerprints": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}List pipeline gate runs
The newest 50 runs tls-check -upload (or the tls-check GitHub
Action’s upload input) posted, newest first. Each is what the
pipeline reported, not re-judged by TRUSTIVAN. Requires assets:read.
GET
/
certificates
/
gates
List pipeline gate runs
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates/gates \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/gates"
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/certificates/gates', 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/certificates/gates"
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))
}{
"gates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"repository": "<string>",
"ref": "<string>",
"commit": "<string>",
"run_url": "<string>",
"failed": true,
"results": [
{
"host": "<string>",
"port": 123,
"file": "<string>",
"object": "<string>",
"sha256": "<string>",
"error": "<string>",
"not_after": "2023-11-07T05:31:56Z",
"issuer": "<string>",
"failed": true,
"findings": [
{
"check": "<string>",
"severity": "low",
"title": "<string>",
"evidence": "<string>"
}
]
}
],
"fingerprints": [
"<string>"
],
"failed_fingerprints": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}