diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index bd711de6c..e96a07217 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -41,9 +41,9 @@ jobs: - uses: golangci/golangci-lint-action@v6 with: version: v1.64 - # Extra linters, only checking new code from a pull request. + # Extra linters, only checking new code from a pull request to main. - name: lint-extra - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && github.base_ref == 'main' run: | golangci-lint run --config .golangci-extra.yml --new-from-rev=HEAD~1