From d4c22ca34b1b80884b273a0ceeb2460183c2968a Mon Sep 17 00:00:00 2001 From: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Date: Mon, 23 Jun 2025 16:52:20 +0100 Subject: [PATCH] chore: stochastic gradient descent to fix `goheader` (#196) ## Why this should be merged Avoids false positives from `goheader`. ## How this works Checks out entire history to give the linter a reference point for new issues only. ## How this was tested With great frustration by waiting for CI. --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 67428073c8..ffebc4b1bf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,6 +30,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Required for go-header check https://github.com/golangci/golangci-lint/issues/2470#issuecomment-1473658471 - uses: actions/setup-go@v5 with: go-version-file: "go.mod"