generated from appvia/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ignoring the slack lambda if configuration not complete (#21)
- Loading branch information
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
AVD-AWS-0057 | ||
AVD-DS-0015 # (Dockerfile) Purge Yum Package Cache - https://avd.aquasec.com/misconfig/dockerfile/general/avd-ds-0015/ | ||
AVD-DS-0002 # (Dockerfile) Least Privilege User - https://avd.aquasec.com/misconfig/dockerfile/general/avd-ds-0002/ | ||
AVD-DS-0026 # (Dockerfile) No Healthcheck - https://avd.aquasec.com/misconfig/dockerfile/general/avd-ds-0026/ | ||
AVD-DS-0013 # (Dockerfile) Use Workdir Over Cd - https://avd.aquasec.com/misconfig/dockerfile/general/avd-ds-0013/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# | ||
# Copyright (C) 2024 Appvia Ltd <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
|
@@ -14,22 +12,22 @@ | |
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
AUTHOR_EMAIL[email protected] | ||
|
||
.PHONY: all security lint format documentation documentation-examples validate-all validate validate-examples init examples | ||
.PHONY: all security lint format documentation documentation-examples validate-all validate validate-examples init examples tests | ||
|
||
default: all | ||
|
||
all: | ||
$(MAKE) init | ||
$(MAKE) validate | ||
$(MAKE) tests | ||
$(MAKE) lint | ||
$(MAKE) security | ||
$(MAKE) format | ||
$(MAKE) documentation | ||
|
||
examples: | ||
$(MAKE) validate-examples | ||
$(MAKE) tests | ||
$(MAKE) lint-examples | ||
$(MAKE) lint | ||
$(MAKE) security | ||
|
@@ -69,7 +67,7 @@ security-modules: | |
@if [ -d modules ]; then \ | ||
find modules -type d -mindepth 1 -maxdepth 1 | while read -r dir; do \ | ||
echo "--> Validating $$dir"; \ | ||
trivy config $$dir; \ | ||
trivy config --format table --exit-code 1 --severity CRITICAL,HIGH --ignorefile .trivyignore $$dir; \ | ||
done; \ | ||
fi | ||
|
||
|
@@ -78,10 +76,14 @@ security-examples: | |
@if [ -d examples ]; then \ | ||
find examples -type d -mindepth 1 -maxdepth 1 | while read -r dir; do \ | ||
echo "--> Validating $$dir"; \ | ||
trivy config $$dir; \ | ||
trivy config --format table --exit-code 1 --severity CRITICAL,HIGH --ignorefile .trivyignore $$dir; \ | ||
done; \ | ||
fi | ||
|
||
tests: | ||
@echo "--> Running Terraform Tests" | ||
@terraform test | ||
|
||
validate: | ||
@echo "--> Running terraform validate" | ||
@terraform init -backend=false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters