diff --git a/.github/workflows/flag_external_pr.yml b/.github/workflows/flag_external_pr.yml index 2319410c13..8e1ac68996 100644 --- a/.github/workflows/flag_external_pr.yml +++ b/.github/workflows/flag_external_pr.yml @@ -10,6 +10,8 @@ jobs: check_author: name: Check PR author runs-on: ubuntu-latest + permissions: + pull-requests: write steps: # Ensure we have the script file for the github-script action to use - name: Checkout 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: