workflows/triage: use PAT with read:org to indentify private members

This commit is contained in:
Rylan Polster 2022-06-22 11:05:02 -04:00
parent 150c7d4d48
commit 377159a6c9
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -35,7 +35,7 @@ jobs:
github.event.action != 'closed' && github.event.pull_request.state != 'closed'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
github-token: ${{ secrets.HOMEBREW_BREW_TRIAGE_PULL_REQUESTS_TOKEN }}
script: |
async function approvePullRequest(pullRequestNumber) {
const reviews = await approvalsByAuthenticatedUser(pullRequestNumber)