From 15b3fb702b5363f55eab04af3ed86e05ceb2e5bb Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Wed, 21 Sep 2022 11:13:40 -0700 Subject: [PATCH] .github/workflows: Use tianocore-assign-reviewers [bot] app Update workflow to generate a token so the assign reviewers action runs with the name and permissions of the tianocore-assign-reviewers [bot] application. Signed-off-by: Michael D Kinney --- .github/workflows/AssignReviewers.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/AssignReviewers.yml b/.github/workflows/AssignReviewers.yml index 06baa4d0da..7778bc0d03 100644 --- a/.github/workflows/AssignReviewers.yml +++ b/.github/workflows/AssignReviewers.yml @@ -20,6 +20,13 @@ jobs: steps: - name: Checkout Pull Request Target uses: actions/checkout@v2 + - name: Get Token + id: get_workflow_token + uses: peter-murray/workflow-application-token-action@v1 + with: + application_id: ${{ secrets.APPLICATION_ID }} + application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }} + organization: tianocore - uses: mdkinney/github-action-assign-reviewers@main with: - token: ${{secrets.CODEOWNERS_VALIDATOR_TOKEN}} + token: ${{ steps.get_workflow_token.outputs.token }}