[Add] Updated conftest to latest version, policies updated, precommit hook also updated
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
# Security Check Script for Terraform
|
||||
# This script runs all security checks on your Terraform configuration
|
||||
|
||||
set -e
|
||||
|
||||
# Colors for output
|
||||
GREEN='\033[0;32m'
|
||||
RED='\033[0;31m'
|
||||
@@ -65,7 +63,7 @@ terraform show -json tfplan | jq > tfplan.json
|
||||
|
||||
echo -e "\n${YELLOW}Running OPA policy checks...${NC}"
|
||||
if [ -d "policy" ]; then
|
||||
conftest test tfplan.json -p policy/
|
||||
conftest test -p policy/ tfplan.json
|
||||
CONFTEST_EXIT=$?
|
||||
if [ $CONFTEST_EXIT -eq 0 ]; then
|
||||
echo -e "${GREEN}✅ OPA policy checks passed.${NC}"
|
||||
|
||||
Reference in New Issue
Block a user