diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0118db8..95f5e69 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,7 +27,7 @@ jobs: - uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 with: - version: v3.9.4 + version: v3.11.0 - name: Install GoReleaser uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v3.1.0 @@ -111,4 +111,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3 with: - version: v1.48.0 + version: v1.51.0 diff --git a/.golangci.yml b/.golangci.yml index 866db00..ba3c1ee 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,29 +1,29 @@ linters: enable: - - asciicheck - - deadcode - - depguard - - errcheck - - errorlint - - gofmt - - goimports - - gosec - - gocritic - - importas - - prealloc - - revive - - misspell - - stylecheck - - unconvert - - whitespace + - asciicheck + - depguard + - errcheck + - errorlint + - gofmt + - goimports + - gosec + - gocritic + - importas + - prealloc + - revive + - misspell + - stylecheck + - unconvert + - unused + - whitespace output: uniq-by-line: false issues: exclude-rules: - - path: _test\.go - linters: - - errcheck - - gosec + - path: _test\.go + linters: + - errcheck + - gosec max-issues-per-linter: 0 max-same-issues: 0 run: diff --git a/go.mod b/go.mod index 2af9411..af40d56 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/helm/chart-testing/v3 -go 1.19 +go 1.20 require ( github.com/MakeNowJust/heredoc v1.0.0 diff --git a/pkg/util/util.go b/pkg/util/util.go index d3f1974..4957987 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -51,7 +51,7 @@ func Flatten(items []interface{}) ([]string, error) { } func init() { - rand.Seed(time.Now().UnixNano()) + rand.New(rand.NewSource(time.Now().UnixNano())) // nolint: gosec } func doFlatten(result []string, items interface{}) ([]string, error) {