Closed nlamirault closed 3 years ago
Looks like the golang base image version needs a bump from 1.13 to 1.16
I'm using the latest release, but it still not working
Run triat/terraform-security-scan@v2.1.0
with:
tfsec_version: v0.38.5
tfsec_actions_comment: true
tfsec_actions_working_dir: .
env:
TF_VERSION: 0.14.3
TFSEC_VERSION: v0.38.5
/usr/bin/docker run --name e4eba6e07f737d44ac85f6651ce85d0fac_700fe7 --label 5588e4 --workdir /github/workspace --rm -e TF_VERSION -e TFSEC_VERSION -e INPUT_TFSEC_VERSION -e INPUT_TFSEC_ACTIONS_COMMENT -e INPUT_TFSEC_ACTIONS_WORKING_DIR -e INPUT_TFSEC_EXCLUDE -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/resident-portal-terraform/resident-portal-terraform":"/github/workspace" 5588e4:eba6e07f737d44ac85f6651ce85d0fac
go: downloading github.com/tfsec/tfsec v0.38.5
go: downloading github.com/liamg/tml v0.3.0
go: downloading github.com/spf13/cobra v1.1.3
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading github.com/liamg/tml v0.4.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/zclconf/go-cty v1.5.1
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/liamg/clinch v1.5.5
go: downloading github.com/zclconf/go-cty v1.8.0
go: downloading github.com/owenrumney/go-sarif v0.0.5
go: downloading github.com/owenrumney/go-sarif v0.0.6
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/hashicorp/hcl/v2 v2.7.0
go: downloading github.com/liamg/clinch v1.5.6
go: downloading github.com/hashicorp/hcl/v2 v2.9.0
go: downloading github.com/hashicorp/terraform v0.12.28
go: downloading github.com/zclconf/go-cty-yaml v1.0.2
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/hashicorp/terraform v0.14.7
go: downloading golang.org/x/text v0.3.5
go: downloading github.com/agext/levenshtein v1.2.2
go: downloading github.com/agext/levenshtein v1.2.3
go: downloading github.com/apparentlymart/go-textseg v1.0.0
go: downloading github.com/apparentlymart/go-textseg/v12 v12.0.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.1
go: downloading golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37
go: downloading github.com/apparentlymart/go-cidr v1.0.1
go: downloading github.com/apparentlymart/go-cidr v1.1.0
go: downloading github.com/bmatcuk/doublestar v1.1.5
go: downloading golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
go: downloading github.com/bmatcuk/doublestar v1.3.4
go: downloading github.com/google/uuid v1.1.1
go: downloading github.com/google/uuid v1.2.0
go: downloading github.com/hashicorp/go-uuid v1.0.1
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/hashicorp/go-uuid v1.0.2
go: downloading golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa
go: downloading golang.org/x/sys v0.0.0-20210223212115-eede4237b368
go: downloading github.com/apparentlymart/go-textseg/v13 v13.0.0
go: downloading golang.org/x/term v0.0.0-20201117132131-f5c789dd3221
go: downloading github.com/hashicorp/errwrap v1.0.0
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d
go: downloading github.com/hashicorp/go-multierror v1.0.0
go: downloading github.com/hashicorp/go-multierror v1.1.0
# github.com/tfsec/tfsec/internal/app/tfsec/formatters
/go/pkg/mod/github.com/tfsec/tfsec@v0.38.5/internal/app/tfsec/formatters/sarif.go:30:35: rule.Id undefined (type *models.Rule has no field or method Id, but does have ID)
/entrypoint.sh: line 20: /go/bin/tfsec: No such file or directory
I have upgraded tfsec to the latest version(0.39.3 at this time), and now the problem is gone 👍 Maybe it's no need to take further action for this issue.
Ok perfect!
Hi, i've got this error :
Any idea ?