| 1 |
name: Lint |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- master |
| 6 |
pull_request: |
| 7 |
|
| 8 |
permissions: |
| 9 |
# Required: allow read access to the content for analysis. |
| 10 |
contents: read |
| 11 |
# Optional: allow read access to pull request. Use with `only-new-issues` option. |
| 12 |
pull-requests: read |
| 13 |
# Optional: Allow write access to checks to allow the action to annotate code in the PR. |
| 14 |
checks: write |
| 15 |
|
| 16 |
jobs: |
| 17 |
lint: |
| 18 |
runs-on: ubuntu-latest |
| 19 |
steps: |
| 20 |
- uses: actions/checkout@v7 |
| 21 |
- uses: actions/setup-go@v6 |
| 22 |
with: |
| 23 |
go-version: 1.26.x |
| 24 |
- run: go version |
| 25 |
- name: Run golangci-lint |
| 26 |
uses: golangci/[email protected] |
| 27 |
with: |
| 28 |
version: v2.10.1 |
| 29 |
args: --verbose |