-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6769 from Checkmarx/joaom/kics-1163
feat(engine): experimental queries as feature flag
- Loading branch information
Showing
35 changed files
with
609 additions
and
299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ jobs: | |
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20.x | ||
cache: false | ||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"kics_version": "development", | ||
"files_scanned": 1, | ||
"lines_scanned": 10, | ||
"files_parsed": 1, | ||
"lines_parsed": 9, | ||
"lines_ignored": 1, | ||
"files_failed_to_scan": 0, | ||
"queries_total": 1, | ||
"queries_failed_to_execute": 0, | ||
"queries_failed_to_compute_similarity_id": 0, | ||
"scan_id": "console", | ||
"severity_counters": { | ||
"HIGH": 0, | ||
"INFO": 0, | ||
"LOW": 0, | ||
"MEDIUM": 1, | ||
"TRACE": 0 | ||
}, | ||
"total_counter": 1, | ||
"total_bom_resources": 0, | ||
"start": "2023-10-27T16:37:16.0886334+01:00", | ||
"end": "2023-10-27T16:37:16.4789259+01:00", | ||
"paths": [ | ||
"/path/test/fixtures/experimental_test/sample", | ||
"/path/test/fixtures/experimental_test/queries" | ||
], | ||
"queries": [ | ||
{ | ||
"query_name": "Redis Disabled", | ||
"query_id": "4bd15dd9-8d5e-4008-8532-27eb0c3706d3", | ||
"query_url": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_cluster#engine", | ||
"severity": "MEDIUM", | ||
"platform": "Terraform", | ||
"cloud_provider": "AWS", | ||
"category": "Encryption", | ||
"description": "ElastiCache should have Redis enabled, since it covers Compliance Certifications such as FedRAMP, HIPAA, and PCI DSS. For more information, take a look at 'https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/SelectEngine.html'", | ||
"description_id": "68984bf2", | ||
"files": [ | ||
{ | ||
"file_name": "path\\test\\fixtures\\experimental_test\\sample\\sample.tf", | ||
"similarity_id": "32a6747d15f909ebe86d171c563878dd7e06dfb2f9ec1b569ef46e810860f27a", | ||
"line": 4, | ||
"resource_type": "aws_elasticache_cluster", | ||
"resource_name": "cluster-example", | ||
"issue_type": "IncorrectValue", | ||
"search_key": "resource.aws_elasticache_cluster[positive1].engine", | ||
"search_line": 4, | ||
"search_value": "", | ||
"expected_value": "resource.aws_elasticache_cluster[positive1].engine should have Redis enabled", | ||
"actual_value": "resource.aws_elasticache_cluster[positive1].engine doesn't enable Redis", | ||
"remediation": "{\"after\":\"redis\",\"before\":\"memcached\"}", | ||
"remediation_type": "replacement" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"kics_version": "development", | ||
"files_scanned": 1, | ||
"lines_scanned": 10, | ||
"files_parsed": 1, | ||
"lines_parsed": 9, | ||
"lines_ignored": 1, | ||
"files_failed_to_scan": 0, | ||
"queries_total": 2, | ||
"queries_failed_to_execute": 0, | ||
"queries_failed_to_compute_similarity_id": 0, | ||
"scan_id": "console", | ||
"severity_counters": { | ||
"HIGH": 1, | ||
"INFO": 0, | ||
"LOW": 0, | ||
"MEDIUM": 1, | ||
"TRACE": 0 | ||
}, | ||
"total_counter": 2, | ||
"total_bom_resources": 0, | ||
"start": "2023-10-27T16:46:52.5513995+01:00", | ||
"end": "2023-10-27T16:46:52.8805179+01:00", | ||
"paths": [ | ||
"/path/test/fixtures/experimental_test/sample", | ||
"/path/test/fixtures/experimental_test/queries" | ||
], | ||
"queries": [ | ||
{ | ||
"query_name": "Redis Disabled Experimental", | ||
"query_id": "4bd15dd9-8d5e-4008-8532-27eb0c3706d4", | ||
"query_url": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_cluster#engine", | ||
"severity": "HIGH", | ||
"platform": "Terraform", | ||
"cloud_provider": "AWS", | ||
"category": "Encryption", | ||
"description": "ElastiCache should have Redis enabled, since it covers Compliance Certifications such as FedRAMP, HIPAA, and PCI DSS. For more information, take a look at 'https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/SelectEngine.html'", | ||
"description_id": "68984bf2", | ||
"files": [ | ||
{ | ||
"file_name": "path\\test\\fixtures\\experimental_test\\sample\\sample.tf", | ||
"similarity_id": "4e651f5c005de96ab66f25419b1f160d9e0eecae83181edfcd1b72b3afbe9f69", | ||
"line": 4, | ||
"resource_type": "aws_elasticache_cluster", | ||
"resource_name": "cluster-example", | ||
"issue_type": "IncorrectValue", | ||
"search_key": "resource.aws_elasticache_cluster[positive1].engine", | ||
"search_line": 4, | ||
"search_value": "", | ||
"expected_value": "resource.aws_elasticache_cluster[positive1].engine should have Redis enabled", | ||
"actual_value": "resource.aws_elasticache_cluster[positive1].engine doesn't enable Redis", | ||
"remediation": "{\"after\":\"redis\",\"before\":\"memcached\"}", | ||
"remediation_type": "replacement" | ||
} | ||
] | ||
}, | ||
{ | ||
"query_name": "Redis Disabled", | ||
"query_id": "4bd15dd9-8d5e-4008-8532-27eb0c3706d3", | ||
"query_url": "https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticache_cluster#engine", | ||
"severity": "MEDIUM", | ||
"platform": "Terraform", | ||
"cloud_provider": "AWS", | ||
"category": "Encryption", | ||
"description": "ElastiCache should have Redis enabled, since it covers Compliance Certifications such as FedRAMP, HIPAA, and PCI DSS. For more information, take a look at 'https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/SelectEngine.html'", | ||
"description_id": "68984bf2", | ||
"files": [ | ||
{ | ||
"file_name": "path\\test\\fixtures\\experimental_test\\sample\\sample.tf", | ||
"similarity_id": "32a6747d15f909ebe86d171c563878dd7e06dfb2f9ec1b569ef46e810860f27a", | ||
"line": 4, | ||
"resource_type": "aws_elasticache_cluster", | ||
"resource_name": "cluster-example", | ||
"issue_type": "IncorrectValue", | ||
"search_key": "resource.aws_elasticache_cluster[positive1].engine", | ||
"search_line": 4, | ||
"search_value": "", | ||
"expected_value": "resource.aws_elasticache_cluster[positive1].engine should have Redis enabled", | ||
"actual_value": "resource.aws_elasticache_cluster[positive1].engine doesn't enable Redis", | ||
"remediation": "{\"after\":\"redis\",\"before\":\"memcached\"}", | ||
"remediation_type": "replacement" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.