Skip to content

Commit

Permalink
ci: bump golangci-lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
pires committed Oct 8, 2024
1 parent 05c6f18 commit cd8a402
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ on:
pull_request:

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
pull-requests: read
# Optional: allow write access to checks to allow the action to annotate code in the PR.
checks: write

jobs:
golangci:
Expand All @@ -21,10 +24,10 @@ jobs:
matrix:
go: ['1.19', '1.20']
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Format
run: go fmt
Expand All @@ -33,7 +36,7 @@ jobs:
run: go vet

- name: lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
#with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
#version: v1.29
Expand Down

0 comments on commit cd8a402

Please sign in to comment.