Merge pull request #2075 from turrisxyz/setup-permissions

chore: Set permissions for GitHub actions
This commit is contained in:
Vladimir Mihailenco 2022-10-05 10:55:46 +03:00 committed by GitHub
commit eae349aa75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,9 @@ on:
pull_request:
branches: [master, v9]
permissions:
contents: read
jobs:
build:
name: build

View File

@ -10,8 +10,14 @@ on:
- v9
pull_request:
permissions:
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: