diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 3ebf8da1a64..0bb80716e38 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -8,7 +8,10 @@ on: workflow_dispatch: permissions: + # Required: allow read access to the content for analysis. contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + pull-requests: read jobs: golangci: @@ -23,3 +26,5 @@ jobs: uses: golangci/golangci-lint-action@v6 with: version: v1.60 + only-new-issues: true + args: --enable goheader diff --git a/.golangci.yml b/.golangci.yml index 21f9499455a..69005bcd65c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,7 +16,6 @@ linters: - gci - gocheckcompilerdirectives - gofmt - - goheader - goimports - gomodguard - gosec diff --git a/.libevm-header b/.libevm-header index f8685d93f28..26fdb30b086 100644 --- a/.libevm-header +++ b/.libevm-header @@ -1,4 +1,4 @@ -Copyright {{ MOD-YEAR }} the libevm authors. +Copyright {{ MOD-YEAR-RANGE }} the libevm authors. The libevm additions to go-ethereum are free software: you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License