diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 49ddd84c..2baa6fad 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -34,8 +34,8 @@ jobs: with: go-version: '1.22' - name: Get golangci - run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.2 - - uses: pre-commit/action@v3.0.0 + run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1 + - uses: pre-commit/action@v3.0.1 test-build: name: Test Image Build diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7be7eb68..47fe8e84 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -default_stages: [commit, push] +default_stages: [pre-commit, pre-push] minimum_pre_commit_version: "1.20.0" repos: - repo: https://github.com/dnephin/pre-commit-golang @@ -7,7 +7,7 @@ repos: - id: go-fmt name: Run go fmt against the code - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: detect-private-key