Monday, December 4, 2023

[Solved] * exec: "tfsec": executable file not found in $PATH


While running the terragrunt plan in the Gitlab runner came across the following error

* exec: "tfsec": executable file not found in $PATH


The issue is caused because the tfsec was not installed in the container image.

Solution :-

To install the tfsec simply run the following bash script and it should install the tfsec on your machine

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


Post a Comment