From 0e2ec83c53b2aa37d39791be0a1f1c20e7b9666e Mon Sep 17 00:00:00 2001 From: willdavsmith Date: Tue, 12 Nov 2024 09:42:10 -0800 Subject: [PATCH] Adding GH_TOKEN Signed-off-by: willdavsmith --- .github/workflows/upmerge.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upmerge.yaml b/.github/workflows/upmerge.yaml index 2d0dce9ac..3afece868 100644 --- a/.github/workflows/upmerge.yaml +++ b/.github/workflows/upmerge.yaml @@ -39,12 +39,15 @@ jobs: ref: edge # https://github.com/actions/checkout/issues/125#issuecomment-570254411 fetch-depth: 0 + persist-credentials: false - name: Configure git + env: + GH_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }} run: | git config --global user.email "radiuscoreteam@service.microsoft.com" git config --global user.name "Radius CI Bot" - gh auth login --with-token <<< "${{ secrets.GH_RAD_CI_BOT_PAT }}" + git remote set-url origin https://$GH_TOKEN@github.com/${{ github.repository }} # Create a new branch from edge. This branch will be used to PR back into edge. - name: Create new branch @@ -78,4 +81,6 @@ jobs: # Create a PR from the new branch to edge - name: Create pull request if: env.NO_CHANGES != 'true' + env: + GH_TOKEN: ${{ secrets.GH_RAD_CI_BOT_PAT }} run: gh pr create --title "Upmerge to edge" --body "Upmerge to edge (kicked off by @${{ github.triggering_actor }})" --base edge --head $BRANCH_NAME