diff --git a/Dockerfile b/Dockerfile index c68e067..7801d96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh index 6ab564b..d9fd983 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 . \ No newline at end of file