diff --git a/.github/workflows/ci-go-cover.yml b/.github/workflows/ci-go-cover.yml index bf0582a2..51dd67bc 100644 --- a/.github/workflows/ci-go-cover.yml +++ b/.github/workflows/ci-go-cover.yml @@ -25,6 +25,10 @@ on: push: branches: [main, master] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + jobs: # Verify minimum coverage is reached using `go test -short -cover` on latest-ubuntu with default version of Go. @@ -36,11 +40,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Install Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.21 + go-version: 1.23 check-latest: true - name: Install x448/float16 run: go get github.com/x448/float16@v0.8.4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f100625b..eea4a47a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,17 @@ on: pull_request: push: branches: + - 'main' - 'master' - 'release*' - 'feature/stream-mode' tags: - - 'v*' + - 'v*' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + jobs: # Test on various OS with default Go version. tests: @@ -35,7 +41,7 @@ jobs: check-latest: true - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: fetch-depth: 1 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c733726e..85afd759 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index 99f3bc8a..73d4095f 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -24,6 +24,18 @@ on: - 'feature/stream-mode' tags: - 'v*' + schedule: + - cron: '25 14 * * 0' + # | | | | | + # | | | | day of the week (0–6 with 0=Sunday) + # | | | month (1–12) + # | | day of month (1–31) + # | hour (0–23 in UTC) + # minute (0–59) + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true jobs: Check: @@ -33,15 +45,18 @@ jobs: contents: read steps: - name: Checkout source - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: fetch-depth: 1 - - name: Set up Go + + - name: Install Go and setup env uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: 1.21.x + go-version: 1.23 check-latest: true - - name: Install latest from golang.org + + - name: Install latest govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@4ea4418106cea3bb2c9aa098527c924e9e1fbbb4 # v1.1.3 - - name: Run govulncheck + + - name: Run govulncheck run: govulncheck -show=traces ./... diff --git a/.github/workflows/safer-golangci-lint.yml b/.github/workflows/safer-golangci-lint.yml index bfb57f17..6b3255b8 100644 --- a/.github/workflows/safer-golangci-lint.yml +++ b/.github/workflows/safer-golangci-lint.yml @@ -17,13 +17,17 @@ on: env: GO_VERSION: '1.22' - GOLINTERS_VERSION: 1.56.2 + GOLINTERS_VERSION: 1.59.1 GOLINTERS_ARCH: linux-amd64 - GOLINTERS_TGZ_DGST: e1c313fb5fc85a33890fdee5dbb1777d1f5829c84d655a47a55688f3aad5e501 + GOLINTERS_TGZ_DGST: c30696f1292cff8778a495400745f0f9c0406a3f38d8bb12cef48d599f6c7791 GOLINTERS_TIMEOUT: 15m OPENSSL_DGST_CMD: openssl dgst -sha256 -r CURL_CMD: curl --proto =https --tlsv1.2 --location --silent --show-error --fail +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + jobs: main: name: Lint @@ -32,7 +36,7 @@ jobs: contents: read steps: - name: Checkout source - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: fetch-depth: 1