Skip to content

Commit

Permalink
Apply goheader fix from default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Feb 17, 2025
1 parent 9d3b8c5 commit 9669aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ jobs:
- run: git diff --exit-code

- name: goheader
if: ${{ github.event_name == 'pull_request' }}
# The goheader linter is only enabled in the CI so that it runs only on modified or new files
# (see only-new-issues: true). It is disabled in .golangci.yml because
# golangci-lint running locally is not aware of new/modified files compared to the base
# commit of a pull request, and we want to avoid reporting invalid goheader errors.
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0 since v6.3.1 does not handle `only-new-issues` correctly
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
only-new-issues: true
Expand Down

0 comments on commit 9669aac

Please # to comment.