Add read permissions to linter workflows

This commit is contained in:
Christian Muehlhaeuser
2022-01-07 07:41:00 +01:00
committed by Christian Rocha
parent 3afda07603
commit 98a8bcf62a
2 changed files with 10 additions and 0 deletions

View File

@@ -3,6 +3,11 @@ on:
push:
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
jobs:
golangci:
name: lint-soft

View File

@@ -3,6 +3,11 @@ on:
push:
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
jobs:
golangci:
name: lint