diff --git a/.github/workflows/commenter.yml b/.github/workflows/commenter.yml index 480f01b595..f449809a30 100644 --- a/.github/workflows/commenter.yml +++ b/.github/workflows/commenter.yml @@ -2,8 +2,13 @@ name: Commenter on: [pull_request_target] +permissions: + contents: read + jobs: commenter: + permissions: + pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment runs-on: ubuntu-latest steps: - name: Comment PR diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 6273035b57..d3d9678043 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -2,6 +2,9 @@ name: Linter on: [push, pull_request] +permissions: + contents: read + jobs: linter: runs-on: ubuntu-latest diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 17fdb961dd..d1955effff 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -5,8 +5,14 @@ on: branches: - master +permissions: + contents: read + jobs: update_release_draft: + permissions: + contents: write # for release-drafter/release-drafter to create a github release + pull-requests: write # for release-drafter/release-drafter to add label to PR runs-on: ubuntu-latest steps: - uses: release-drafter/release-drafter@v5 diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 64f7130856..e94651c609 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -2,6 +2,9 @@ name: Tester on: [push, pull_request] +permissions: + contents: read + jobs: tester: runs-on: ${{ matrix.os }} @@ -23,6 +26,9 @@ jobs: env: CI: true coverage: + permissions: + checks: write # for coverallsapp/github-action to create new checks + contents: read # for actions/checkout to fetch code runs-on: ${{ matrix.os }} strategy: matrix: