From eb42efc20457e76ec1c72e1b64e73240d9517396 Mon Sep 17 00:00:00 2001 From: Tom Kerkhove Date: Tue, 4 Jul 2023 14:58:10 +0200 Subject: [PATCH] fix(automation): Use dedicated PAT for skipping e2e Use dedicated PAT for skipping e2e instead of GITHUB_TOKEN which does not support triggering other workflows https://github.com/actions/github-script#using-a-separate-github-token Signed-off-by: Tom Kerkhove --- .github/workflows/pr-e2e.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-e2e.yml b/.github/workflows/pr-e2e.yml index 101dbd1c7c0..9286c48345e 100644 --- a/.github/workflows/pr-e2e.yml +++ b/.github/workflows/pr-e2e.yml @@ -38,6 +38,7 @@ jobs: if: ${{ startsWith(github.event.comment.body,'/skip-e2e') && steps.checkUserMember.outputs.isTeamMember == 'true' }} uses: actions/github-script@v6 with: + github-token: ${{ secrets.GH_AUTOMATION_PAT }} script: | github.rest.issues.addLabels({ issue_number: context.issue.number,