-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement trivy scanning of terraform modules (issues ignored)
- Loading branch information
Showing
5 changed files
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
# list of the folders that we want to parse, only if a README.md exists and no .trivy_ignore | ||
for dir in $(find modules -type d -maxdepth 1) $(find examples -type d -maxdepth 1); do | ||
if [ -f "$dir/README.md" ] && ! [ -e "$dir/.trivy_ignore" ]; then | ||
echo "Scanning terraform module with trivy: $dir" | ||
trivy config --config .lint/trivy/trivy.yaml --ignorefile .trivyignore "$dir" | ||
fi | ||
done |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
quiet: false | ||
debug: false | ||
format: table | ||
exit-code: 1 | ||
|
||
misconfiguration: | ||
scanners: | ||
- terraform |
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
AVD-AWS-0178 #(MEDIUM): VPC does not have VPC Flow Logs enabled. |
Empty file.