From 4ba630fc3fb4649ddf06aa82c92c992027d7bc25 Mon Sep 17 00:00:00 2001 From: Avishai Carmel Date: Sun, 3 Jul 2022 13:33:32 +0300 Subject: [PATCH] Fix the example of how to comment on pull request. It doesn't work without granting permissions. https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 79f33051..9b7a7fef 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,8 @@ Outputs can be used in subsequent steps to comment on the pull request: defaults: run: working-directory: ${{ env.tf_actions_working_dir }} +permissions: + pull-requests: write steps: - uses: actions/checkout@v2 - uses: hashicorp/setup-terraform@v2 @@ -150,6 +152,8 @@ Instead of creating a new comment each time, you can also update an existing one defaults: run: working-directory: ${{ env.tf_actions_working_dir }} +permissions: + pull-requests: write steps: - uses: actions/checkout@v2 - uses: hashicorp/setup-terraform@v2