v1
latestOpenAPI 3.0.32026-07-26233989.2 KBAnalysis
Get IaC Scan Results
Retrieves Infrastructure as Code (IaC) security scanning results for a specific repository and commit
post/api/analysis/results/iac
Request body
Example request
{
"repo": "owner/repository",
"commit_id": "abc123def456",
"branch": "main",
"access_token": "ghp_xxxxxxxxxxxx",
"service": "github",
"gitlab_base_url": "https://gitlab.com"
}Response
IaC scan results retrieved successfully
Example response
{
"results": [
{
"check_type": "terraform",
"results": {
"failed_checks": [
{
"bc_check_id": "BC_AWS_NETWORKING_31",
"check_id": "CKV_AWS_23",
"check_name": "Ensure every security group and rule has a description",
"file_path": "/owner/repository/abc123def456/terraform/main.tf",
"file_line_range": [
2,
25
],
"check_class": "checkov.terraform.checks.resource.aws.SecurityGroupRuleDescription",
"code_block": [
[
2,
"resource \"aws_security_group\" \"web\" {\n"
],
[
3,
" name_prefix = \"web-sg\"\n"
]
],
"resource": "aws_security_group.web",
"start_line": 2,
"end_line": 25
}
]
}
}
]
}