.github/workflows/golangci-lint.yaml
raw| 1 | name: golangci-lint |
| 2 | on: [push, pull_request] |
| 3 | |
| 4 | jobs: |
| 5 | golangci-lint: |
| 6 | name: lint |
| 7 | runs-on: ubuntu-latest |
| 8 | permissions: |
| 9 | contents: read # for actions/checkout to fetch code |
| 10 | pull-requests: read # for golangci/golangci-lint-action to fetch pull requests |
| 11 | steps: |
| 12 | - uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e |
| 13 | - name: golangci-lint |
| 14 | uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc |
| 15 | with: |
| 16 | only-new-issues: true |