diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 73c66409..a7c662ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [master] +permissions: + contents: read + jobs: build: name: build diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 28c16c58..6f0cf28e 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -9,8 +9,14 @@ on: - main 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: