Skip to content

Commit

Permalink
feat: Added tfsec
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Nov 20, 2023
1 parent 8a0b3eb commit c1e5cb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ RUN TF_HW="amd64" && \
chmod +x terraform-docs && \
mv terraform-docs /usr/local/bin

# tfsec
RUN curl -s https://raw.githubusercontent.com/aquasecurity/tfsec/master/scripts/install_linux.sh | bash

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

Expand Down
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ echo "﹥ Running terraform fmt"
terraform fmt .
echo "﹥ Running tflint"
tflint
echo "﹥ Running tfsec"
tfsec .
echo "﹥ Running terraform-docs"
terraform-docs -c /.terraform-docs.yml .

0 comments on commit c1e5cb7

Please sign in to comment.