From e4af0eaa47a9892f3aa2b8cf5d1eb0d05cf9488f Mon Sep 17 00:00:00 2001 From: George Joseph <gjoseph@sangoma.com> Date: Wed, 6 Mar 2024 09:21:33 -0700 Subject: [PATCH] .github: Add PAT to PRSubmitActions/Add Reviewers (cherry picked from commit 12d2bd23d5100f4891c8a66f4b008ded1f0b13bc) --- .github/workflows/PRSubmitActions.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- GitLab