Lists All Errors in File Path
POST/code/api/v1/errors/file
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
List errors in files
Request
Query Parameters
Possible values: >= 1
and <= 100
- application/json
Body
required
- Array [
- ]
Possible values: [IAM
, Compute
, Monitoring
, Networking
, Kubernetes
, General
, Storage
, Secrets
, Public
, Vulnerabilities
, Drift
, BuildIntegrity
, Licenses
]
Possible values: [hasFix
]
Possible values: [IAM
, Compute
, Monitoring
, Networking
, Kubernetes
, General
, Storage
, Secrets
, Public
, Vulnerabilities
, Drift
, BuildIntegrity
, Licenses
]
Possible values: [build.gradle
, gradle.properties
, build.gradle.kts
, pom.xml
, requirements.txt
, package-lock.json
, package.json
, bower.json
, go.sum
, go.mod
]
search object
Possible values: [path
, code
]
Possible values: [title
, constructive_title
, descriptive_title
]
Possible values: [CRITICAL
, HIGH
, MEDIUM
, LOW
, INFO
]
Possible values: [Github
, Bitbucket
, Gitlab
, AzureRepos
, cli
, AWS
, Azure
, GCP
, Docker
, githubEnterprise
, gitlabEnterprise
, bitbucketEnterprise
, terraformCloud
, githubActions
, circleci
, codebuild
, jenkins
, tfcRunTasks
, tfeRunTasks
, admissionController
, terraformEnterprise
]
tags object[]
Possible values: [Errors
, Suppressed
, Passed
, Fixed
, Awaiting Remediation
]
Responses
- 200
- 422
Get errors in file
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- ]
- ]
- ]
data object[]required
Possible values: [IAM
, Logging
, Monitoring
, Networking
, Kubernetes
, General
, Serverless
, Elasticsearch
, Storage
, Secrets
, Public
, Vulnerabilities
, Compute
, VCS
, BuildIntegrity
, Licenses
, Drift
, Policy3D
, Sast
, Artifact Integrity Validation
, Cider Kill Chain
, Credential Hygiene
, Data Protection
, Dependency Chain Abuse
, Dependency Chains
, Flow Control Mechanisms
, Input Validation
, Patches & Updates
, Pipeline-Based Access Controls (PBAC)
, Pipeline Flow Control
, Poisoned Pipeline Execution (PPE)
, System Configuration
, Supply Chain
]
cves object[]
fixes object[]required
licenses object[]
module objectrequired
moduleReferences object[]required
Possible values: [Privileged
, Valid
, Invalid
, Unknown
, Unavailable
]
secrets object[]
Possible values: [IAM
, Logging
, Monitoring
, Networking
, Kubernetes
, General
, Serverless
, Elasticsearch
, Storage
, Secrets
, Public
, Vulnerabilities
, Compute
, VCS
, BuildIntegrity
, Licenses
, Drift
, Policy3D
, Sast
, Artifact Integrity Validation
, Cider Kill Chain
, Credential Hygiene
, Data Protection
, Dependency Chain Abuse
, Dependency Chains
, Flow Control Mechanisms
, Input Validation
, Patches & Updates
, Pipeline-Based Access Controls (PBAC)
, Pipeline Flow Control
, Poisoned Pipeline Execution (PPE)
, System Configuration
, Supply Chain
]
module objectrequired
moduleReferences object[]required
Possible values: [Privileged
, Valid
, Invalid
, Unknown
, Unavailable
]
Possible values: [Github
, Bitbucket
, Gitlab
, AzureRepos
, cli
, AWS
, Azure
, GCP
, Docker
, githubEnterprise
, gitlabEnterprise
, bitbucketEnterprise
, terraformCloud
, githubActions
, circleci
, codebuild
, jenkins
, tfcRunTasks
, tfeRunTasks
, admissionController
, terraformEnterprise
]
variableRendering objectrequired
selectedFix objectnullable
Possible values: [Github
, Bitbucket
, Gitlab
, AzureRepos
, cli
, AWS
, Azure
, GCP
, Docker
, githubEnterprise
, gitlabEnterprise
, bitbucketEnterprise
, terraformCloud
, githubActions
, circleci
, codebuild
, jenkins
, tfcRunTasks
, tfeRunTasks
, admissionController
, terraformEnterprise
]
variableRendering objectrequired
{
"data": [
{
"author": "string",
"category": "IAM",
"commitHash": "string",
"createdBy": "string",
"cves": [
{
"causePackageId": "string",
"causePackageName": "string",
"causePackageVersion": "string",
"cveId": "string",
"cveStatus": "string",
"cvss": 0,
"description": "string",
"errorLines": [
0
],
"fixVersion": "string",
"imageName": "string",
"link": "string",
"packageName": "string",
"packageVersion": "string",
"publishedDate": "2024-07-29T15:51:28.071Z",
"riskFactors": "string",
"severity": "string",
"status": "string",
"uuid": "string",
"vector": "string",
"violationId": "string"
}
],
"date": "2024-07-29T15:51:28.071Z",
"errorId": "string",
"errorLines": [
0
],
"fileMetadataUuid": "string",
"filePath": "string",
"fixPath": "string",
"fixedCode": "string",
"fixes": [
{
"code": "string",
"fixedCode": "string",
"id": "string",
"inspectedKey": "string",
"percent": 0,
"recommenderType": "string",
"times": 0
}
],
"frameworkType": "string",
"isFixable": true,
"licenses": [
{
"id": "string",
"license": "string",
"packageId": "string",
"packageName": "string",
"packageVersion": "string",
"parentId": "string",
"status": "string"
}
],
"lines": [
0
],
"metadataChecksMetadataPath": "string",
"module": {
"code": "string",
"fixedCode": "string",
"moduleFile": "string",
"moduleReferences": [
{
"code": "string",
"displayPath": "string",
"lines": [
0
],
"name": "string",
"path": "string"
}
]
},
"resourceCode": "string",
"resourceId": "string",
"resourceType": "string",
"runtimeFrameworkType": "string",
"runtimeId": "string",
"runtimeSourceId": "string",
"scannerType": "string",
"secretValidationStatus": "Privileged",
"secrets": [
{
"author": "string",
"category": "IAM",
"commitHash": "string",
"date": "2024-07-29T15:51:28.071Z",
"errorId": "string",
"errorLines": [
0
],
"fileMetadataUuid": "string",
"filePath": "string",
"fixPath": "string",
"frameworkType": "string",
"lines": [
0
],
"metadataChecksMetadataPath": "string",
"module": {
"moduleFile": "string",
"moduleReferences": [
{
"code": "string",
"displayPath": "string",
"lines": [
0
],
"name": "string",
"path": "string"
}
]
},
"resourceCode": "string",
"resourceFixCode": "string",
"resourceId": "string",
"resourceType": "string",
"resourceUuid": "string",
"runtimeFrameworkType": "string",
"runtimeId": "string",
"runtimeSourceId": "string",
"s3FilePath": "string",
"scannerType": "string",
"secretValidationStatus": "Privileged",
"sourceType": "Github",
"status": "string",
"variableCode": "string",
"variableFixCode": "string",
"variableRendering": {
"code": "string",
"lines": [
0
],
"path": "string"
}
}
],
"selectedFix": {
"code": "string",
"fixedCode": "string",
"id": "string",
"inspectedKey": "string",
"percent": 0,
"recommenderType": "string",
"times": 0
},
"sourceType": "Github",
"status": "string",
"variableRendering": {
"code": "string",
"fixedCode": "string",
"lines": [
0
],
"path": "string"
}
}
],
"hasNext": true
}
{
"data": [
{
"author": "author",
"category": "IAM",
"commitHash": "5c6b5d60",
"createdBy": "checkov_terraform",
"errorId": "BC_AWS_S3_14",
"errorLines": [],
"fileMetadataUuid": "de707daa-2ef3-40e1-8bbf-5e39f86b927e",
"filePath": "/terraform/aws/s3.tf",
"fixPath": "checkov/yourname/yourGithubName/yourRepo/master/fixes/BC_AWS_S3_14/aws_s3_bucket.data/terraform/aws/s3.tf",
"fixedCode": "resource \"aws_s3_bucket\" \"data\" { \n # bucket is public \n bucket = \"$\n{local.resource_prefix.value}-data\" \n force_destroy = true \n tags = merge({ \n Name = \"${local.resource_prefix.value}-data\" \n Environment = local.resource_prefix.value \n }) \n server_side_encryption_configuration { \n rule { \n apply_server_side_encryption_by_default { \n sse_algorithm = \"AES256\" \n } \n } \n }",
"fixes": [],
"frameworkType": "Terraform",
"isFixable": true,
"lines": [
1,
21
],
"metadataChecksMetadataPath": "checkov/yourname/yourGithubName/yourRepo/master/checkov_results/terraform/checks_metadata.json",
"resourceCode": "resource \"aws_s3_bucket\" \"data\" { \n # bucket is public \n bucket = \"$\n{local.resource_prefix.value}-data\" \n force_destroy = true \n tags = merge({ \n Name = \"${local.resource_prefix.value}-data\" \n Environment = local.resource_prefix.value \n })",
"resourceId": "/terraform/aws/s3.tf:aws_s3_bucket.data",
"resourceType": "aws_s3_bucket.data",
"runtimeFrameworkType": null,
"runtimeId": null,
"runtimeSourceId": null,
"scannerType": "Checkov",
"secretValidationStatus": "Valid",
"selectedFix": null,
"sourceType": "Github",
"status": "OPEN"
}
],
"hasNext": true
}
Request arguments validation error