Lists all errors found in a given file path.
List errors in files
Query Parameters
- limit int32
Possible values:
>= 1
and<= 100
- offset int32
- application/json
Request Body required
- CICDRunId double
- authors string[]
- branch string nullable
- categories Category[]
Possible values: [
IAM
,Compute
,Monitoring
,Networking
,Kubernetes
,General
,Storage
,Secrets
,Public
,Vulnerabilities
,Drift
,BuildIntegrity
,Licenses
] - codeStatus CodeStatus[]
Possible values: [
hasFix
] - excludeCategories Category[]
Possible values: [
IAM
,Compute
,Monitoring
,Networking
,Kubernetes
,General
,Storage
,Secrets
,Public
,Vulnerabilities
,Drift
,BuildIntegrity
,Licenses
] - filePath string required
- fileTypes FileType[]
Possible values: [
tf
,json
,yml
,yaml
,template
,.checkov.baseline
,hcl
,Dockerfile
,package.json
,package-lock.json
,bower.json
,pom.xml
,build.gradle
,build.gradle.kts
,gradle.properties
,gradle-wrapper.properties
,go.sum
,go.mod
,requirements.txt
,METADATA
,bicep
,Pipfile.lock
,Pipfile
,yarn.lock
,Gemfile
,Gemfile.lock
,gemspec
,env
,settings.py
,main.py
,application.py
,config.py
,app.js
,config.js
,dev.js
,db.properties
,application.properties
,private.pem
,privatekey.pem
,index.php
,config.php
,config.xml
,strings.xml
,app.module.ts
,environment.ts
,tpl
,tfvars
,unknown
] - repository string required
- repositoryId string
search object
options string[] requiredPossible values: [
path
,code
]text string requiredtitle stringPossible values: [
title
,constructive_title
,descriptive_title
]- severities Severity[]
Possible values: [
CRITICAL
,HIGH
,MEDIUM
,LOW
,INFO
] - sourceTypes SourceType[] required
Possible values: [
Github
,Bitbucket
,Gitlab
,AzureRepos
,cli
,AWS
,Azure
,GCP
,Docker
,githubEnterprise
,gitlabEnterprise
,bitbucketEnterprise
,terraformCloud
,githubActions
,circleci
,codebuild
,jenkins
,tfcRunTasks
,admissionController
,terraformEnterprise
] tags object[]
Array [key string requiredvalue string required]- types Type[]
Possible values: [
Errors
,Suppressed
,Passed
,Fixed
]
- 200
- 422
Get errors in file
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
data object[] required
Array [author string requiredcommitHash string requiredcreatedBy stringcves object[]
Array [causePacakgeId string requiredcausePackageName string requiredcausePackageVersion string requiredcveId string requiredcvss double requireddescription string requiredlink string requiredpackageName string requiredpackageVersion string requiredpublishedDate date-time requiredriskFactors string requiredseverity string requiredstatus string requiredvector string required]date date-time requirederrorId string requirederrorLines double[] requiredfileMetadataUuid string requiredfilePath string requiredfixPath string requiredfixedCode string requiredfixes object[] required
Array [code stringfixedCode stringid string requiredinspectedKey string requiredpercent double requiredrecommenderType string requiredtimes double required]frameworkType string requiredisFixable booleanlicenses object[]
Array [id string requiredlicense string requiredpackageId string requiredpackageName string requiredpackageVersion string requiredparentId string requiredstatus string required]lines double[] requiredmetadataChecksMetadataPath string requiredmodule object required
code string requiredfixedCode string requiredmoduleFile string requiredmoduleReferences object[] required
Array [code string requireddisplayPath string requiredlines double[] requiredname string requiredpath string required]resourceCode string requiredresourceId string requiredresourceType string requiredruntimeFrameworkType stringruntimeId string requiredruntimeSourceId string requiredscannerType string requiredsecrets object[]
Array [author string requiredcommitHash string requireddate date-time requirederrorId string requirederrorLines double[] requiredfileMetadataUuid string requiredfilePath string requiredfixPath string requiredframeworkType string requiredlines double[] requiredmetadataChecksMetadataPath string requiredmodule object required
moduleFile string requiredmoduleReferences object[] required
Array [code string requireddisplayPath string requiredlines double[] requiredname string requiredpath string required]resourceCode string requiredresourceFixCode stringresourceId string requiredresourceType string requiredresourceUuid stringruntimeFrameworkType stringruntimeId string requiredruntimeSourceId string requireds3FilePath stringscannerType string requiredsourceType SourceType requiredPossible values: [
Github
,Bitbucket
,Gitlab
,AzureRepos
,cli
,AWS
,Azure
,GCP
,Docker
,githubEnterprise
,gitlabEnterprise
,bitbucketEnterprise
,terraformCloud
,githubActions
,circleci
,codebuild
,jenkins
,tfcRunTasks
,admissionController
,terraformEnterprise
]status string requiredvariableCode stringvariableFixCode stringvariableRendering object required
code string requiredlines double[] requiredpath string required]selectedFix object nullable
code stringfixedCode stringid string requiredinspectedKey string requiredpercent double requiredrecommenderType string requiredtimes double requiredsourceType SourceType requiredPossible values: [
Github
,Bitbucket
,Gitlab
,AzureRepos
,cli
,AWS
,Azure
,GCP
,Docker
,githubEnterprise
,gitlabEnterprise
,bitbucketEnterprise
,terraformCloud
,githubActions
,circleci
,codebuild
,jenkins
,tfcRunTasks
,admissionController
,terraformEnterprise
]status string requiredvariableRendering object required
code string requiredfixedCode string requiredlines double[] requiredpath string required]- hasNext boolean required
{
"data": [
{
"author": "string",
"commitHash": "string",
"createdBy": "string",
"cves": [
{
"causePacakgeId": "string",
"causePackageName": "string",
"causePackageVersion": "string",
"cveId": "string",
"cvss": 0,
"description": "string",
"link": "string",
"packageName": "string",
"packageVersion": "string",
"publishedDate": "2023-06-02T02:17:57.865Z",
"riskFactors": "string",
"severity": "string",
"status": "string",
"vector": "string"
}
],
"date": "2023-06-02T02:17:57.865Z",
"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",
"secrets": [
{
"author": "string",
"commitHash": "string",
"date": "2023-06-02T02:17:57.865Z",
"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",
"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",
"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",
"selectedFix": null,
"sourceType": "Github",
"status": "OPEN"
}
],
"hasNext": true
}
Request arguments validation error