From f02ad334becf39a6cf087be8402ebdb8dfb83aeb Mon Sep 17 00:00:00 2001 From: Dev Singh Date: Fri, 18 Jul 2025 14:29:25 -0400 Subject: [PATCH] use github app installation for required reviews --- .github/workflows/review.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 1b50eaf0..6345f774 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -13,9 +13,15 @@ jobs: if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name steps: + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ secrets.REQUIRED_REVIEWS_APP_ID }} + private-key: ${{ secrets.REQUIRED_REVIEWS_APP_KEY }} - uses: Automattic/action-required-review@v4.1.0 with: - token: ${{ secrets.REQUIRED_REVIEWS_TOKEN }} + token: ${{ steps.generate-token.outputs.token }} status: Required Reviews requirements: | - name: Cloud provider files