List an application's security fixes
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/security-fixes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/security-fixes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/security-fixes \
--header 'Authorization: Bearer <token>'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fixes": [
{
"attempts": 123,
"checks": {
"pipeline_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "running",
"url": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"findings": [
{
"from": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"package": "<string>",
"severity": "<string>",
"to": "<string>",
"vulnerability_id": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "image_rebuild",
"max_attempts": 123,
"merge": {
"approved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"can_approve": true,
"merged_at": "2023-11-07T05:31:56Z",
"mode": "wait_for_you",
"state": "not_ready"
},
"pull_request": {
"branch": "<string>",
"head_sha": "<string>",
"number": 123,
"repository": "<string>",
"url": "<string>"
},
"review": {
"findings_addressed": 123,
"findings_open": 123,
"state": "none"
},
"started_by": {
"actor": "person",
"trigger": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"status": "working",
"status_reason": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Applications
List an application's security fixes
Every security fix pull request opened for the application’s findings, newest first (at most 50), each with the remediation run that follows it: the findings it fixes, the checks on its latest pipeline run, the AI review of its head, and whether Ankra merges it when green or waits for a person. Requires applications.read.
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
security-fixes
List an application's security fixes
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/security-fixes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/applications/{application_id}/security-fixes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/applications/{application_id}/security-fixes \
--header 'Authorization: Bearer <token>'{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fixes": [
{
"attempts": 123,
"checks": {
"pipeline_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "running",
"url": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"findings": [
{
"from": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"package": "<string>",
"severity": "<string>",
"to": "<string>",
"vulnerability_id": "<string>"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "image_rebuild",
"max_attempts": 123,
"merge": {
"approved_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"can_approve": true,
"merged_at": "2023-11-07T05:31:56Z",
"mode": "wait_for_you",
"state": "not_ready"
},
"pull_request": {
"branch": "<string>",
"head_sha": "<string>",
"number": 123,
"repository": "<string>",
"url": "<string>"
},
"review": {
"findings_addressed": 123,
"findings_open": 123,
"state": "none"
},
"started_by": {
"actor": "person",
"trigger": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"status": "working",
"status_reason": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}