chore: Set permissions for GitHub actions (#6936)

pull/6972/head
Naveen 2022-05-25 12:05:29 -05:00 committed by GitHub
parent b4624bd468
commit e65071d3aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -18,8 +18,14 @@ on:
env:
GOPROXY: "https://proxy.golang.org"
permissions:
contents: read
jobs:
lint:
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:

View File

@ -4,6 +4,9 @@ on:
branches: [ main ]
pull_request:
permissions:
contents: read
jobs:
shellcheck:
name: Shellcheck