From 4c762834bfaa6454b70fb532c7d62767957c84a9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 27 Jul 2026 08:13:07 +0000 Subject: [PATCH] chore: move lint error messages step into own job Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/cgo.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cgo.yml b/.github/workflows/cgo.yml index ac80c6309cc..b05de076e80 100644 --- a/.github/workflows/cgo.yml +++ b/.github/workflows/cgo.yml @@ -1299,10 +1299,6 @@ jobs: make golint fi - # Error message linting (requires Go only) - - name: Lint error messages - run: make lint-errors - # Enforce selected production custom analyzers without blocking on unrelated # legacy custom analyzer findings in tests or other analyzer families. # Note: -test=false intentionally scopes this gate to production code only. @@ -1316,6 +1312,28 @@ jobs: - name: Lint action shell scripts run: make lint-action-sh + lint-error-messages: + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + concurrency: + group: ci-${{ github.ref }}-lint-error-messages + cancel-in-progress: true + steps: + - name: Checkout code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Set up Go + uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6 + with: + go-version-file: go.mod + cache: true + + # Error message linting (requires Go only) + - name: Lint error messages + run: make lint-errors + actions-build: runs-on: ubuntu-latest timeout-minutes: 10 @@ -2434,6 +2452,7 @@ jobs: - bench - check-validator-sizes - lint-go + - lint-error-messages - actions-build - fuzz - security