Merge pull request #13288 from diogoteles08/feat/add-minimum-permissions-to-script

scripts: Add minimal permissions to script golangci-lint.yml
This commit is contained in:
Julien Pivotto 2023-12-18 12:12:39 +01:00 committed by GitHub
commit eec006915e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: