triat / terraform-security-scan

Run a security scan on your terraform with the very nice https://github.com/aquasecurity/tfsec
MIT License
110 stars 30 forks source link

cannot load github.com/hashicorp/terraform/lang/funcs error #38

Closed alexiskat closed 3 years ago

alexiskat commented 3 years ago

Hi,

I have the following config:

      - name: Terraform Security Scan
        uses: triat/terraform-security-scan@v2.0.2
        with:
          tfsec_actions_working_dir: ${{ env.TF_MODULE_PATH }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

and with it I am getting the following error:

build github.com/tfsec/tfsec/cmd/tfsec: cannot load github.com/hashicorp/terraform/lang/funcs: module github.com/hashicorp/terraform@latest found (v0.15.4), but does not contain package github.com/hashicorp/terraform/lang/funcs
/entrypoint.sh: line 20: /go/bin/tfsec: No such file or directory
triat commented 3 years ago

Hi @weebaws,

can you try to use the latest version or the action?

alexiskat commented 3 years ago

My apologies, I did not realised I was using such an old ver. Your suggestion resolved the issue. thanks