Closed nlamirault closed 3 years ago
Hello @nlamirault,
This is not really an error that you see with this line: WARNING: Failed to load module: missing module with source 'terraform-google-modules/cloud-nat/google' - try to 'terraform init' first
As it says it is a warning and it says that you haven't loaded the module for cloud-nat/google
. This would need to be set up in a step before the terraform-security-scan
Is it more clear to you?
OK. It is possbile to perform a terraform init using the Action ? @triat
gcp_gke:
name: gcp-gke
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Terraform security scan master
uses: triat/terraform-security-scan@master
with:
tfsec_actions_working_dir: 'iac/gcp/gke'
run: |
terraform init .....
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Right now, it isn't possible. We could think about having something like that but I wonder if this could trigger other issues.
i'm using Google cloud-nat module, and i've got this error message :
How can if fix that ? Thanks.