Closed ArpanBalpande-webjet closed 3 years ago
closing this as the issue got resolved after using latest version of github action. Thanks.
I'm seeing this issue now.
- name: Terraform security scan
uses: triat/terraform-security-scan@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# github.com/aquasecurity/defsec/rego/convert
/go/pkg/mod/github.com/aquasecurity/defsec@v0.25.0/rego/convert/struct.go:35:10: typ.IsExported undefined (type reflect.StructField has no field or method IsExported)
note: module requires Go 1.17
/entrypoint.sh: line 20: /go/bin/tfsec: No such file or directory
I'm trying this github action but getting the below 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
This is how my workflow yml file for github actions looks currently:
name: 'Code Review and Code Lint' on: [pull_request]
jobs: tfsec: name: 'TFSec Checks' runs-on: ubuntu-latest needs: 'tflint' steps: