From 7fe8d0d86578f034afef1f8ccc6c90c1969d4ebf Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 31 Jul 2022 13:53:14 -0400 Subject: [PATCH] Specify permissions Forked repositories may not grant write permissions by default --- .github/workflows/set-issue-expectations.yml | 2 ++ .github/workflows/set-pull-expectations.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/set-issue-expectations.yml b/.github/workflows/set-issue-expectations.yml index da03493f..2d01d79c 100644 --- a/.github/workflows/set-issue-expectations.yml +++ b/.github/workflows/set-issue-expectations.yml @@ -6,6 +6,8 @@ jobs: comment-on-issue: name: Comment On Issue runs-on: ubuntu-latest + permissions: + issues: write steps: - uses: actions/github@v1.0.0 env: diff --git a/.github/workflows/set-pull-expectations.yml b/.github/workflows/set-pull-expectations.yml index da8df535..c8a0045a 100644 --- a/.github/workflows/set-pull-expectations.yml +++ b/.github/workflows/set-pull-expectations.yml @@ -7,6 +7,8 @@ jobs: comment-on-pull: name: Comment On Pull runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - uses: actions/github-script@v3 with: