ci: add minimum GitHub token permissions for workflows (#1792)

Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
This commit is contained in:
Varun Sharma
2022-10-03 07:53:12 -07:00
committed by GitHub
parent 93d1913fb0
commit 23fc5e099f
4 changed files with 23 additions and 0 deletions

View File

@ -8,6 +8,9 @@ on:
env:
GO111MODULE: on
permissions:
contents: read
jobs:
@ -30,6 +33,9 @@ jobs:
golangci-lint:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
runs-on: ubuntu-latest
steps: