File tree Expand file tree Collapse file tree 5 files changed +44
-19
lines changed Expand file tree Collapse file tree 5 files changed +44
-19
lines changed Original file line number Diff line number Diff line change 1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17- - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3 .0
17+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4 .0
1818 with :
1919 go-version-file : ' go.mod'
2020 - run : go install github.com/rhysd/actionlint/cmd/actionlint@latest
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ jobs:
1717 runs-on : ubuntu-latest
1818 steps :
1919 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20- - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3 .0
20+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4 .0
2121 with :
2222 go-version-file : ' go.mod'
2323 - run : go mod download
24- - uses : golangci/golangci-lint-action@4696ba8babb6127d732c3c6dde519db15edab9ea # v6.5.1
24+ - uses : golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
2525 test :
2626 name : test (Go ${{ matrix.go-version }} / TF ${{ matrix.terraform }})
2727 runs-on : ubuntu-latest
3131 terraform : ${{ fromJSON(vars.TF_VERSIONS_PROTOCOL_V5) }}
3232 steps :
3333 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34- - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3 .0
34+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4 .0
3535 with :
3636 go-version : ${{ matrix.go-version }}
3737 - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
4949 wildcard=".*"
5050 echo "version=${orginal_version%"$wildcard"}" >> "$GITHUB_OUTPUT"
5151 - run : go tool cover -html=coverage.out -o coverage.html
52- - uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
52+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5353 with :
5454 name : go-${{ matrix.go-version }}-terraform-${{ steps.tf_version.outputs.version }}-coverage
5555 path : coverage.html
Original file line number Diff line number Diff line change 1515 runs-on : ubuntu-latest
1616 steps :
1717 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18- - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3 .0
18+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4 .0
1919 with :
2020 go-version-file : ' go.mod'
2121 - uses : goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6.2.1
Original file line number Diff line number Diff line change 8484 ref : ${{ inputs.versionNumber }}
8585 fetch-depth : 0
8686
87- - uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3 .0
87+ - uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4 .0
8888 with :
8989 go-version-file : ' go.mod'
9090
Original file line number Diff line number Diff line change 1- issues :
2- max-issues-per-linter : 0
3- max-same-issues : 0
4-
1+ version : " 2"
52linters :
6- disable-all : true
3+ default : none
74 enable :
85 - copyloopvar
96 - durationcheck
107 - errcheck
118 - forcetypeassert
12- - gofmt
13- - gosimple
9+ - govet
1410 - ineffassign
1511 - makezero
1612 - misspell
@@ -22,8 +18,37 @@ linters:
2218 - unparam
2319 - unused
2420 - usetesting
25- - govet
26-
27- run :
28- # Prevent false positive timeouts in CI
29- timeout : 5m
21+ exclusions :
22+ generated : lax
23+ presets :
24+ - comments
25+ - common-false-positives
26+ - legacy
27+ - std-error-handling
28+ paths :
29+ - third_party$
30+ - builtin$
31+ - examples$
32+ settings :
33+ staticcheck :
34+ checks :
35+ - all
36+ - ' -QF1001' # "could apply De Morgan's law" -- https://staticcheck.dev/docs/checks/#QF1001
37+ - ' -QF1002' # "could use tagged switch" -- https://staticcheck.dev/docs/checks/#QF1002
38+ - ' -QF1004' # "could use strings.ReplaceAll instead" -- https://staticcheck.dev/docs/checks/#QF1004
39+ - ' -QF1008' # "could remove embedded field "Block" from selector" -- https://staticcheck.dev/docs/checks/#QF1008
40+ - ' -ST1003' # example: "const autoTFVarsJson should be autoTFVarsJSON" -- https://staticcheck.dev/docs/checks/#ST1003
41+ - ' -ST1005' # "error strings should not end with punctuation or newlines" -- https://staticcheck.dev/docs/checks/#ST1005
42+ - ' -ST1016' # example: "methods on the same type should have the same receiver name (seen 2x "r", 2x "s")" -- https://staticcheck.dev/docs/checks/#ST1016
43+ issues :
44+ max-issues-per-linter : 0
45+ max-same-issues : 0
46+ formatters :
47+ enable :
48+ - gofmt
49+ exclusions :
50+ generated : lax
51+ paths :
52+ - third_party$
53+ - builtin$
54+ - examples$
You can’t perform that action at this time.
0 commit comments