Skip to content

Commit

Permalink
Enabled skip-check for Checkov
Browse files Browse the repository at this point in the history
  • Loading branch information
david-sandy authored Feb 5, 2022
1 parent 462ef95 commit b95d8b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .buildkite/ci-checkov.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Set this to fail on the install
# Set this to fail on the install
set -euxo pipefail

# Install and run the plugin for checkov
Expand All @@ -8,7 +8,7 @@ pip3 install checkov

# List of checks we do not want to run here
# This is a living list and will see additions and mostly removals over time.
# SKIP_CHECKS="CKV_GCP_22,CKV_GCP_66,CKV_GCP_13,CKV_GCP_71,CKV_GCP_61,CKV_GCP_21,CKV_GCP_65,CKV_GCP_67,CKV_GCP_20,CKV_GCP_69,CKV_GCP_12,CKV_GCP_24,CKV_GCP_25,CKV_GCP_64,CKV_GCP_68,CKV2_AWS_5,CKV2_GCP_3,CKV2_GCP_5,CKV_AWS_23,CKV_GCP_70,CKV_GCP_62,CKV_GCP_62,CKV_GCP_62,CKV_GCP_62,CKV_GCP_29,CKV_GCP_39"
SKIP_CHECKS="CKV_GCP_22,CKV_GCP_66,CKV_GCP_13,CKV_GCP_71,CKV_GCP_61,CKV_GCP_21,CKV_GCP_65,CKV_GCP_67,CKV_GCP_20,CKV_GCP_69,CKV_GCP_12,CKV_GCP_24,CKV_GCP_25,CKV_GCP_64,CKV_GCP_68,CKV2_AWS_5,CKV2_GCP_3,CKV2_GCP_5,CKV_AWS_23,CKV_GCP_70,CKV_GCP_62,CKV_GCP_62,CKV_GCP_62,CKV_GCP_62,CKV_GCP_29,CKV_GCP_39"

set +x
# In case no terraform code is present
Expand All @@ -19,7 +19,7 @@ echo "==========================================================================
# Set not to fail on non-zero exit code
set +e
# Run checkov
python3 -m checkov.main --quiet --framework terraform --compact -d .
python3 -m checkov.main --skip-check $SKIP_CHECKS --quiet --framework terraform --compact -d .

# Options
# --quiet: Only show failing tests
Expand Down

0 comments on commit b95d8b7

Please sign in to comment.