From 018fd182a58b95ec78b47460a6f05402ca0fbb65 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 6 Jun 2026 02:04:06 +0000 Subject: [PATCH] fix(ci): authenticate git push in create_daily_oss_agent_shin_branch The workflow added in #28829 (commit 48dd71b818) uses persist-credentials: false on actions/checkout but still runs 'git push origin', so the push fails with 'fatal: could not read Username for https://github.com'. Push via an authenticated URL using GITHUB_TOKEN, mirroring the fix proposed in #28440 for create_daily_staging_branch.yml. Co-authored-by: Krrish Dholakia --- .github/workflows/create_daily_oss_agent_shin_branch.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_daily_oss_agent_shin_branch.yml b/.github/workflows/create_daily_oss_agent_shin_branch.yml index d6118f3b53c..e54371bde35 100644 --- a/.github/workflows/create_daily_oss_agent_shin_branch.yml +++ b/.github/workflows/create_daily_oss_agent_shin_branch.yml @@ -41,7 +41,8 @@ jobs: echo "Creating new branch: $BRANCH_NAME" # Create the new branch from main git checkout -b $BRANCH_NAME origin/main - # Push the new branch - git push origin $BRANCH_NAME + # Push via authenticated URL; checkout uses persist-credentials: false + # so the local repo has no credentials configured for `git push origin`. + git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$BRANCH_NAME" echo "Successfully created and pushed branch: $BRANCH_NAME" fi