Skip to content

Commit

Permalink
chore(deps): updating from the upstream dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed Nov 1, 2024
1 parent 7a5aabe commit 3802929
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 35 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ todo.md
*.swp
*.swo

# Irgnore meld diff files
# Ignore meld diff files
*.orig
*.backup
*.rej

# Ignore lambda zip files and build directories
*.zip
builds/
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ init:
@echo "--> Running terraform init"
@terraform init -backend=false

security:
security: init
@echo "--> Running Security checks"
@trivy config .
$(MAKE) security-modules
Expand All @@ -81,13 +81,15 @@ security-modules:
@echo "--> Running Security checks on modules"
@find . -type d -regex '.*/modules/[a-zA-Z\-_$$]*' -not -path '*.terraform*' 2>/dev/null | while read -r dir; do \
echo "--> Validating $$dir"; \
terraform init -backend=false; \
trivy config --format table --exit-code 1 --severity CRITICAL,HIGH --ignorefile .trivyignore $$dir; \
done;

security-examples:
@echo "--> Running Security checks on examples"
@find . -type d -path '*/examples/*' -not -path '*.terraform*' 2>/dev/null | while read -r dir; do \
echo "--> Validating $$dir"; \
terraform init -backend=false; \
trivy config --format table --exit-code 1 --severity CRITICAL,HIGH --ignorefile .trivyignore $$dir; \
done;

Expand Down
Loading

0 comments on commit 3802929

Please sign in to comment.