diff --git a/.github/workflows/approved-label.yml b/.github/workflows/approved-label.yml index a0f583c26a4..5cbec52387f 100644 --- a/.github/workflows/approved-label.yml +++ b/.github/workflows/approved-label.yml @@ -1,4 +1,6 @@ on: pull_request_review +permissions: + pull_request: write name: Add "approved" label when approved jobs: add_label: @@ -11,6 +13,4 @@ jobs: APPROVALS: "1" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ADD_LABEL: "approved" - REMOVE_LABEL: "" - permissions: - pull_request: write \ No newline at end of file + REMOVE_LABEL: "" \ No newline at end of file