Add minimal permissions to script golangci-lint.yml

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
This commit is contained in:
Diogo Teles Sant'Anna 2023-12-13 16:30:06 -03:00
parent 69abd6d9f6
commit 1a8381a501
No known key found for this signature in database

View file

@ -12,8 +12,14 @@ on:
- ".golangci.yml"
pull_request:
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps: