From 7223cf42dc6f35728ff0f383a5441c02e1129c88 Mon Sep 17 00:00:00 2001 From: Ramon Petgrave Date: Mon, 7 Oct 2024 13:18:10 -0400 Subject: [PATCH] fix lint config Signed-off-by: Ramon Petgrave --- .github/workflows/pre-submit.lint.yml | 4 ++-- .golangci.yml | 4 ++-- go.mod | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pre-submit.lint.yml b/.github/workflows/pre-submit.lint.yml index f6d97ea..4b84ba1 100644 --- a/.github/workflows/pre-submit.lint.yml +++ b/.github/workflows/pre-submit.lint.yml @@ -16,13 +16,13 @@ jobs: go-version-file: "go.mod" # not needed but gets rid of warnings cache: false - - uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1 + - uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 name: golangci-lint with: # Require: The version of golangci-lint to use. # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. - version: v1.59.1 + version: v1.61.0 yamllint: runs-on: ubuntu-latest diff --git a/.golangci.yml b/.golangci.yml index d9ae8b5..29d49c4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -3,7 +3,7 @@ run: concurrency: 2 deadline: 5m # For generics. - go: 1.18 + # go: 1.23.1 issues: include: - EXC0012 @@ -32,7 +32,7 @@ linters: # - errcheck - errorlint - exhaustive - - exportloopref + - copyloopvar # TODO(https://github.com/slsa-framework/slsa-verifier/issues/363): Restore linter # - gci - gochecknoinits diff --git a/go.mod b/go.mod index 7dda90b..d3ad89c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/slsa-framework/slsa-verifier/v2 -go 1.22.0 +go 1.23.1 require ( github.com/docker/go v1.5.1-1