fixed script that running all checks

This commit is contained in:
vadzik 2025-05-19 21:36:36 +03:00
parent 9c67e03de3
commit 0fb871f6c6

View File

@ -26,7 +26,7 @@ CURRENT_DIR=$(pwd)
if [ -f "terraform/scripts/run_security_checks.sh" ]; then if [ -f "terraform/scripts/run_security_checks.sh" ]; then
# Change to terraform directory and run the security checks # Change to terraform directory and run the security checks
cd terraform cd terraform
if bash scripts/run_security_checks.sh --pre-commit; then if bash scripts/run_security_checks.sh; then
cd "$CURRENT_DIR" cd "$CURRENT_DIR"
echo -e "${GREEN}Terraform security checks passed!${NC}" echo -e "${GREEN}Terraform security checks passed!${NC}"
exit 0 exit 0