Skip to content

Commit

Permalink
fix: update make targets to use trivy (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
myjaffoo authored May 30, 2024
1 parent cff753b commit 1e50eab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ init:

security:
@echo "--> Running Security checks"
@tfsec .
@trivy config .
$(MAKE) security-modules
$(MAKE) security-examples

Expand All @@ -69,7 +69,7 @@ security-modules:
@if [ -d modules ]; then \
find modules -type d -mindepth 1 -maxdepth 1 | while read -r dir; do \
echo "--> Validating $$dir"; \
tfsec $$dir; \
trivy config $$dir; \
done; \
fi

Expand All @@ -78,7 +78,7 @@ security-examples:
@if [ -d examples ]; then \
find examples -type d -mindepth 1 -maxdepth 1 | while read -r dir; do \
echo "--> Validating $$dir"; \
tfsec $$dir; \
trivy config $$dir; \
done; \
fi

Expand Down

0 comments on commit 1e50eab

Please sign in to comment.