get https://www.bridgecrew.cloud/api/v1/development-pipeline/code-review/runs/data
Get Code review runs data
Name | Required | Type | In | Description |
---|---|---|---|---|
page | no | number | query | the index of the results page |
sortBy | no - default 'usersCount' | string | query | The column name by which to sort the results Type: (weeklyCommits, usersCount, failedPrs, pendingFixPrs, scanTime, repository, organization) |
search | no | string | query | search for code reviews of specific repositories |
limit | no | number | query | limit number of results |
Response Example 1:
[
{
"hasNext": true,
"data": [{
"id": "1",
"organization": "prismacloudcas",
"repository": "terragoat",
"sourceType": "Github",
"runId": 5,
"commitId": "123456",
"gitUser": "Michal",
"status": "COMPLETED",
"scanStatus": "HARD_FAIL",
"results": { "CRITICAL": 10, "MEDIUM": 5, "HIGH": 20, "LOW": 1 },
"PR": {
"title": "My PR",
"prNumber": "5",
"fromBranch": "feature/mod-aws-node",
"intoBranch": "main",
"enforcementRule": {
"BUILD_INTEGRITY": {
"softFailThreshold": "CRITICAL",
"hardFailThreshold": "CRITICAL",
"commentsBotThreshold": "HIGH"
},
"SECRETS": {
"softFailThreshold": "CRITICAL",
"hardFailThreshold": "CRITICAL",
"commentsBotThreshold": "HIGH"
},
"IAC": {
"softFailThreshold": "CRITICAL",
"hardFailThreshold": "CRITICAL",
"commentsBotThreshold": "HIGH"
},
"VULNERABILITIES": {
"softFailThreshold": "CRITICAL",
"hardFailThreshold": "CRITICAL",
"commentsBotThreshold": "HIGH"
},
"LICENSES": {
"softFailThreshold": "CRITICAL",
"hardFailThreshold": "CRITICAL",
"commentsBotThreshold": "HIGH"
}
}
},
"defaultBranch": "main"
}]
}
]