Specify permissions for golangci-lint-action
This commit is contained in:

committed by
Maximilian Paß

parent
1323cf58b3
commit
60867e9214
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -48,6 +48,13 @@ jobs:
|
||||
lint:
|
||||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
# Optional: Allow write access to checks to allow the action to annotate code in the PR.
|
||||
checks: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Go
|
||||
|
Reference in New Issue
Block a user