From 342bdbb6038baf228df05bd1675fff2aa7da5c8c Mon Sep 17 00:00:00 2001 From: Artur Souza Date: Tue, 4 Mar 2025 15:48:21 -0800 Subject: [PATCH] Use Dapr Bot token when checking out code. Signed-off-by: Artur Souza --- .github/workflows/create-release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index ce2f7d350..e8d9945f5 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -32,6 +32,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.DAPR_BOT_TOKEN }} - name: Set up OpenJDK ${{ env.JDK_VER }} uses: actions/setup-java@v4 with: @@ -42,13 +43,9 @@ jobs: sudo apt-get update sudo apt-get install pcre2-utils - name: Create release branch and tag - env: - GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }} run: | git config user.email "daprweb@microsoft.com" git config user.name "Dapr Bot" - # Update origin with token - git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git # Copy first to allow automation to use the latest version and not the release branch's version. cp -R ./.github/scripts ${RUNNER_TEMP}/ ${RUNNER_TEMP}/scripts/create-release.sh ${{ inputs.rel_version }}