From: George Joseph Date: Wed, 6 Mar 2024 16:21:33 +0000 (-0700) Subject: .github: Add PAT to PRSubmitActions/Add Reviewers X-Git-Tag: 21.3.0-rc1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df6501c8c30c7f912916dfce3208d74c82a044ad;p=thirdparty%2Fasterisk.git .github: Add PAT to PRSubmitActions/Add Reviewers (cherry picked from commit a02a929d2749df957f543c4ed0667dd46800d155) --- diff --git a/.github/workflows/PRSubmitActions.yml b/.github/workflows/PRSubmitActions.yml index 2ea87c7601..c7706d5609 100644 --- a/.github/workflows/PRSubmitActions.yml +++ b/.github/workflows/PRSubmitActions.yml @@ -123,8 +123,9 @@ jobs: REVIEWERS: ${{vars.PR_REVIEWERS}} with: retries: 5 + github-token: ${{ secrets.ASTERISKTEAM_PAT }} script: | - let rs = JSON.parse(process.env.REVIEWERS); + let rs = JSON.parse(process.env.REVIEWERS.length ? process.env.REVIEWERS : '[]'); let users = []; let teams = []; for (const r of rs) {