6 python3.pkgs.buildPythonApplication rec {
11 src = fetchFromGitHub {
12 owner = "bridgecrewio";
14 rev = "refs/tags/${version}";
15 hash = "sha256-L7D29npEUSy9lO3RF5rJ9apQoZjWhC45D0c+7/5/8r0=";
19 ./flake8-compat-5.x.patch
31 nativeBuildInputs = with python3.pkgs; [
36 propagatedBuildInputs = with python3.pkgs; [
79 nativeCheckInputs = with python3.pkgs; [
90 export HOME=$(mktemp -d);
94 # No API key available
96 # Requires network access
98 "test_skip_mapping_default"
100 "test_file_with_class"
101 "test_dataclass_skip"
102 "test_typing_class_skip"
103 # Tests are comparing console output
108 # AssertionError: assert ['<?xml versi...
109 "test_get_cyclonedx_report"
112 disabledTestPaths = [
113 # Tests are pulling from external sources
114 # https://github.com/bridgecrewio/checkov/blob/f03a4204d291cf47e3753a02a9b8c8d805bbd1be/.github/workflows/build.yml
119 "tests/cloudformation/"
122 "tests/generic_json/"
123 "tests/generic_yaml/"
124 "tests/github_actions/"
127 "tests/sca_package_2"
129 "cdk_integration_tests/"
130 "sast_integration_tests"
131 # Performance tests have no value for us
132 "performance_tests/test_checkov_performance.py"
134 "dogfood_tests/test_checkov_dogfood.py"
137 pythonImportsCheck = [
142 chmod +x $out/bin/checkov
146 description = "Static code analysis tool for infrastructure-as-code";
147 homepage = "https://github.com/bridgecrewio/checkov";
148 changelog = "https://github.com/bridgecrewio/checkov/releases/tag/${version}";
150 Prevent cloud misconfigurations during build-time for Terraform, Cloudformation,
151 Kubernetes, Serverless framework and other infrastructure-as-code-languages.
153 license = licenses.asl20;
154 maintainers = with maintainers; [ anhdle14 fab ];