docs: update annotation permissions (#1203)

This commit is contained in:
Ludovic Fernandez 2025-03-19 00:29:57 +01:00 committed by GitHub
parent 55c2c1448f
commit b91d580160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -513,8 +513,6 @@ permissions:
contents: read contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option. # 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
``` ```
For annotations to work use the default `colored-line-number` output and either use `actions/setup-go` in the job or enable the internal [problem matchers](#problem-matchers). For annotations to work use the default `colored-line-number` output and either use `actions/setup-go` in the job or enable the internal [problem matchers](#problem-matchers).