diff --git a/.github/workflows/apidiff.yml b/.github/workflows/apidiff.yml index 808c1c081..cffb7e956 100644 --- a/.github/workflows/apidiff.yml +++ b/.github/workflows/apidiff.yml @@ -12,9 +12,17 @@ on: paths-ignore: - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code +env: + # Use the Go toolchain installed by setup-go + GOTOOLCHAIN: local + jobs: apidiff: runs-on: ubuntu-latest @@ -23,7 +31,7 @@ jobs: - name: Setup Go uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 with: - go-version: 1.23.x + go-version: stable - name: Add GOBIN to PATH run: echo "$(go env GOPATH)/bin" >>$GITHUB_PATH - name: Install apidiff cmd diff --git a/.github/workflows/cache-cleanup.yml b/.github/workflows/cache-cleanup.yml index 5f37f829a..d8fae9158 100644 --- a/.github/workflows/cache-cleanup.yml +++ b/.github/workflows/cache-cleanup.yml @@ -5,6 +5,10 @@ on: types: - closed +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3b035958..c985dcad9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,9 +12,17 @@ on: paths-ignore: - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code +env: + # Use the Go toolchain installed by setup-go + GOTOOLCHAIN: local + jobs: lint: permissions: @@ -25,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: [1.23.x] + go-version: [stable] steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: @@ -38,7 +46,7 @@ jobs: shell: bash env: BUILDTAGS: "functional" - VERSION: "v0.5.1" + VERSION: "v0.6.0" run: | go install "honnef.co/go/tools/cmd/staticcheck@${VERSION}" echo "::add-matcher::./.github/actions/staticcheck-matchers.json" @@ -48,14 +56,14 @@ jobs: GOFLAGS: -tags=functional uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0 with: - version: v1.63.4 + version: v1.64.5 test: name: Unit Testing with Go ${{ matrix.go-version }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: - go-version: [1.21.x, 1.23.x] + go-version: [oldstable, stable] env: DEBUG: true GOFLAGS: -trimpath diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index fd933d454..8b55028da 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -10,9 +10,17 @@ on: schedule: - cron: "39 12 * * 1" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code +env: + # Use the Go toolchain installed by setup-go + GOTOOLCHAIN: local + jobs: analyze: name: Analyze @@ -37,7 +45,7 @@ jobs: - name: Setup Go uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 with: - go-version: 1.23.x + go-version: stable - name: Autobuild uses: github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10 - name: Perform CodeQL Analysis diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 0c1397bd1..f93b074f3 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -14,6 +14,10 @@ on: paths-ignore: - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index ca7251c81..849969706 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -12,9 +12,17 @@ on: paths-ignore: - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code +env: + # Use the Go toolchain installed by setup-go + GOTOOLCHAIN: local + jobs: test: name: Fuzz @@ -28,6 +36,6 @@ jobs: - name: Setup Go uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 with: - go-version: 1.23.x + go-version: stable - name: Run any fuzzing tests run: go test -list . | grep '^Fuzz' | parallel 'go test -v -run=^{}$ -fuzz=^{}$ -fuzztime=5m' diff --git a/.github/workflows/fvt-main.yml b/.github/workflows/fvt-main.yml index 7b21a371f..9aac2c792 100644 --- a/.github/workflows/fvt-main.yml +++ b/.github/workflows/fvt-main.yml @@ -10,13 +10,17 @@ on: permissions: contents: read # for actions/checkout to fetch code +env: + # Use the Go toolchain installed by setup-go + GOTOOLCHAIN: local + jobs: fvt: name: Test with Kafka ${{ matrix.kafka-version }} strategy: fail-fast: false matrix: - go-version: [1.23.x] + go-version: [stable] kafka-version: [1.0.2, 2.0.1, 2.2.2, 2.6.3, 2.8.2, 3.0.2, 3.3.2, 3.6.2, 3.8.1, 4.0.0] include: - kafka-version: 1.0.2 diff --git a/.github/workflows/fvt-pr.yml b/.github/workflows/fvt-pr.yml index fce523f8b..d7ab42517 100644 --- a/.github/workflows/fvt-pr.yml +++ b/.github/workflows/fvt-pr.yml @@ -9,13 +9,17 @@ on: permissions: contents: read # for actions/checkout to fetch code +env: + # Use the Go toolchain installed by setup-go + GOTOOLCHAIN: local + jobs: fvt: name: Test with Kafka ${{ matrix.kafka-version }} strategy: fail-fast: false matrix: - go-version: [1.23.x] + go-version: [stable] kafka-version: [1.0.2, 2.6.3, 3.6.2, 3.8.1, 4.0.0] include: - kafka-version: 1.0.2 diff --git a/.github/workflows/fvt.yml b/.github/workflows/fvt.yml index b4beb51c1..06566c821 100644 --- a/.github/workflows/fvt.yml +++ b/.github/workflows/fvt.yml @@ -5,7 +5,7 @@ on: go-version: required: false type: string - default: 1.23.x + default: stable kafka-version: required: false type: string @@ -15,9 +15,17 @@ on: type: string default: 2.13 +concurrency: + group: ${{ github.workflow }}-kafka-${{ inputs.kafka-version}}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code +env: + # Use the Go toolchain installed by setup-go + GOTOOLCHAIN: local + jobs: fvt: name: Test with Kafka ${{ inputs.kafka-version }} diff --git a/.github/workflows/i386.yml b/.github/workflows/i386.yml index 36047645a..b1c1b0840 100644 --- a/.github/workflows/i386.yml +++ b/.github/workflows/i386.yml @@ -12,9 +12,17 @@ on: paths-ignore: - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code +env: + # Use the Go toolchain installed by setup-go + GOTOOLCHAIN: local + jobs: atomicalign: permissions: @@ -28,7 +36,7 @@ jobs: - name: Setup Go uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 with: - go-version: 1.23.x + go-version: stable - name: staticcheck env: GOARCH: 386 diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 933d0f830..2a0bea7f6 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -10,6 +10,10 @@ on: push: branches: [ "main" ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + # Declare default permissions as read only. permissions: actions: read diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 987a5307d..3cdd3640c 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -5,6 +5,10 @@ on: - cron: "0 */2 * * *" workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + permissions: contents: read # for actions/checkout to fetch code diff --git a/examples/consumergroup/go.mod b/examples/consumergroup/go.mod index 5306f0714..374a5c616 100644 --- a/examples/consumergroup/go.mod +++ b/examples/consumergroup/go.mod @@ -1,6 +1,6 @@ module github.com/IBM/sarama/examples/consumer -go 1.21 +go 1.23.0 require github.com/IBM/sarama v1.45.0 diff --git a/examples/exactly_once/go.mod b/examples/exactly_once/go.mod index 25c8f7ac6..8c24e96cf 100644 --- a/examples/exactly_once/go.mod +++ b/examples/exactly_once/go.mod @@ -1,6 +1,6 @@ module github.com/IBM/sarama/examples/exactly_once -go 1.21 +go 1.23.0 require github.com/IBM/sarama v1.45.0 diff --git a/examples/http_server/go.mod b/examples/http_server/go.mod index 0d66a732d..49b3edea2 100644 --- a/examples/http_server/go.mod +++ b/examples/http_server/go.mod @@ -1,6 +1,6 @@ module github.com/IBM/sarama/examples/http_server -go 1.21 +go 1.23.0 require github.com/IBM/sarama v1.45.0 diff --git a/examples/interceptors/go.mod b/examples/interceptors/go.mod index d69607eb5..b47ca0000 100644 --- a/examples/interceptors/go.mod +++ b/examples/interceptors/go.mod @@ -1,6 +1,6 @@ module github.com/IBM/sarama/examples/interceptors -go 1.21 +go 1.23.0 require ( github.com/IBM/sarama v1.45.0 diff --git a/examples/sasl_scram_client/go.mod b/examples/sasl_scram_client/go.mod index d9bbe6d57..90c8bfb0a 100644 --- a/examples/sasl_scram_client/go.mod +++ b/examples/sasl_scram_client/go.mod @@ -1,6 +1,6 @@ module github.com/IBM/sarama/examples/sasl_scram_client -go 1.21 +go 1.23.0 require ( github.com/IBM/sarama v1.45.0 diff --git a/examples/txn_producer/go.mod b/examples/txn_producer/go.mod index 4d62fc5a3..03e76b7bc 100644 --- a/examples/txn_producer/go.mod +++ b/examples/txn_producer/go.mod @@ -1,6 +1,6 @@ module github.com/IBM/sarama/examples/txn_producer -go 1.21 +go 1.23.0 require ( github.com/IBM/sarama v1.45.0 diff --git a/go.mod b/go.mod index 0185b9334..9da7e9da0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/IBM/sarama -go 1.21 +go 1.23.0 require ( github.com/davecgh/go-spew v1.1.1