Skip to content

Commit 9790931

Browse files
authored
Use github app installation for required reviews (#217)
1 parent e40a8ed commit 9790931

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/review.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ jobs:
1313
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
1414

1515
steps:
16+
- name: Generate a token
17+
id: generate-token
18+
uses: actions/create-github-app-token@v2
19+
with:
20+
app-id: ${{ secrets.REQUIRED_REVIEWS_APP_ID }}
21+
private-key: ${{ secrets.REQUIRED_REVIEWS_APP_KEY }}
1622
- uses: Automattic/[email protected]
1723
with:
18-
token: ${{ secrets.REQUIRED_REVIEWS_TOKEN }}
24+
token: ${{ steps.generate-token.outputs.token }}
1925
status: Required Reviews
2026
requirements: |
2127
- name: Cloud provider files

0 commit comments

Comments
 (0)