List code finding dispositions (browser session)
import requests
url = "https://platform.ankra.app/org/security/code-dispositions"
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/org/security/code-dispositions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/security/code-dispositions \
--header 'Authorization: Bearer <token>'{
"is_truncated": true,
"items": [
{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"disposition": "false_positive",
"expires_at": "2023-11-07T05:31:56Z",
"finding_severity": "HIGH",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": "<string>",
"reason": "<string>",
"repository": "<string>",
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revoked_at": "2023-11-07T05:31:56Z",
"revoked_by": "<string>",
"revoked_reason": "<string>",
"rule_id": "<string>",
"scope": "repository_code",
"status": "active",
"tool": "semgrep"
}
]
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Security
List code finding dispositions (browser session)
Lists the organisation’s repository code finding dispositions (Semgrep and Checkov false positives and accepted risks the Ankra Pipelines image gate honours), newest first, optionally for one application or pipeline repository. Requires security.read.
GET
/
org
/
security
/
code-dispositions
List code finding dispositions (browser session)
import requests
url = "https://platform.ankra.app/org/security/code-dispositions"
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/org/security/code-dispositions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/org/security/code-dispositions \
--header 'Authorization: Bearer <token>'{
"is_truncated": true,
"items": [
{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"disposition": "false_positive",
"expires_at": "2023-11-07T05:31:56Z",
"finding_severity": "HIGH",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": "<string>",
"reason": "<string>",
"repository": "<string>",
"repository_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revoked_at": "2023-11-07T05:31:56Z",
"revoked_by": "<string>",
"revoked_reason": "<string>",
"rule_id": "<string>",
"scope": "repository_code",
"status": "active",
"tool": "semgrep"
}
]
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Only this application's pipeline repository.
Only this pipeline repository.
Values above 200 are clamped to 200; is_truncated says when more exist.
Required range:
x >= 1