From 00a9e17f642bc29fcae6a736e95366fc68625a47 Mon Sep 17 00:00:00 2001 From: Tamir Kamara <26870601+tamirkamara@users.noreply.github.com> Date: Thu, 8 Feb 2024 17:19:17 +0200 Subject: [PATCH] add permissions for pr bot --- .github/workflows/pr_comment_bot.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pr_comment_bot.yml b/.github/workflows/pr_comment_bot.yml index 99fe8e4ff1..06e7824a6a 100644 --- a/.github/workflows/pr_comment_bot.yml +++ b/.github/workflows/pr_comment_bot.yml @@ -18,6 +18,9 @@ jobs: # - the commenting user has write permissions (i.e. is OWNER or COLLABORATOR) if: ${{ github.event.issue.pull_request }} runs-on: ubuntu-latest + permissions: + pull-requests: write + checks: write outputs: command: ${{ steps.check_command.outputs.command }} prRef: ${{ steps.check_command.outputs.prRef }} @@ -68,6 +71,8 @@ jobs: needs: [pr_comment] if: ${{ needs.pr_comment.outputs.command == 'test-destroy-env' }} runs-on: ubuntu-latest + permissions: + pull-requests: write environment: CICD name: Destroy PR env steps: @@ -102,6 +107,8 @@ jobs: needs: [pr_comment] if: ${{ needs.pr_comment.outputs.command == 'test-destroy-env' && needs.pr_comment.outputs.branchRefId != '' }} runs-on: ubuntu-latest + permissions: + pull-requests: write environment: CICD name: Destroy branch env steps: