Changes for image ver latest runner to UNKNOWN and related test changes
MODIFY
checkov/circleci_pipelines/checks/image_version_not_hash.py
checkov/circleci_pipelines/checks/image_version_not_hash.py
@@ -28,7 +28,7 @@ class ImageReferenceHashVersion(BaseCircleCIPipelinesCheck):
return CheckResult.PASSED, conf
if "latest" in image:
return CheckResult.UNKNOWN, conf
- # We pass on "latest" as we have a specific check with a more informative violation description.
+ # We UNKNOWN on "latest" as we have a specific check with a more informative violation description.
# See CKV_CIRCLECIPIPELINES_1
return CheckResult.FAILED, conf

MODIFY
tests/circleci_pipelines/test_runner.py
tests/circleci_pipelines/test_runner.py
@@ -18,7 +18,7 @@ class TestRunnerValid(unittest.TestCase):
)
self.assertEqual(len(report.failed_checks), 13)
self.assertEqual(report.parsing_errors, [])
- self.assertEqual(len(report.passed_checks), 29)
+ self.assertEqual(len(report.passed_checks), 23)
self.assertEqual(report.skipped_checks, [])
report.print_console()

Changes for image ver latest runner to UNKNOWN and related test changes