Skip to content

Commit e5073d1

Browse files
committed
add auth back for cherry pick
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
1 parent a048464 commit e5073d1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/cherry-pick-single.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
9393
# Push the new branch. Force push to ensure that in case the original cherry-pick branch is stale,
9494
# that the current state of the $TARGET_BRANCH + cherry-pick gets in $CHERRY_PICK_BRANCH.
95-
git push origin -f "$CHERRY_PICK_BRANCH"
95+
git push "https://x-access-token:${APP_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" -f "$CHERRY_PICK_BRANCH"
9696
9797
# Save data for PR creation
9898
echo "branch_name=$CHERRY_PICK_BRANCH" >> "$GITHUB_OUTPUT"
@@ -108,6 +108,7 @@ jobs:
108108
exit 1
109109
fi
110110
env:
111+
APP_TOKEN: ${{ steps.generate-token.outputs.token }}
111112
INPUTS_MERGE_COMMIT_SHA: ${{ inputs.merge_commit_sha }}
112113
INPUTS_VERSION_NUMBER: ${{ inputs.version_number }}
113114
INPUTS_PR_NUMBER: ${{ inputs.pr_number }}

0 commit comments

Comments
 (0)