From edad593db1882225936be64b5d7dbd4ac6a5094a Mon Sep 17 00:00:00 2001 From: Shailja Khurana <117320115+khushail@users.noreply.github.com> Date: Wed, 28 Jun 2023 11:48:48 -0700 Subject: [PATCH] chore: added write permissions in the stale-discussions workflow (#26154) Added write permission for github workflow action as required. This would eliminate the need for changing github repo settings as mentioned [here](https://github.com/aws-github-ops/handle-stale-discussions/blob/main/README.md#steps-to-enable-this-action-in-your-repository) > [CONTRIBUTING GUIDE]: https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md > [DESIGN GUIDELINES]: https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md Closes #. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .github/workflows/handle-stale-discussions.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/handle-stale-discussions.yml b/.github/workflows/handle-stale-discussions.yml index acee0ec83e409..2b89f2da15f21 100644 --- a/.github/workflows/handle-stale-discussions.yml +++ b/.github/workflows/handle-stale-discussions.yml @@ -9,6 +9,8 @@ jobs: handle-stale-discussions: name: Handle stale discussions runs-on: ubuntu-latest + permissions: + discussions: write steps: - name: Stale discussions action uses: aws-github-ops/handle-stale-discussions@v1