name: golangci-lint on: [push, pull_request] jobs: golangci-lint: name: lint runs-on: ubuntu-latest permissions: contents: read # for actions/checkout to fetch code pull-requests: read # for golangci/golangci-lint-action to fetch pull requests steps: - uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e - name: golangci-lint uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018 with: only-new-issues: true