Skip to content

Commit 227e04f

Browse files
authored
Merge pull request #52 from PyAutoLabs/fix/queue-filing-push-auth
fix: push the filing branch with the job token explicitly
2 parents ba2190b + e3a4c0e commit 227e04f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/queue_filing.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ jobs:
156156
echo "::error::Claude produced no changes"; exit 1
157157
fi
158158
git commit -m "queue: file paper from #${ISSUE}"
159-
git push -u origin "$branch"
159+
# claude-code-action rewires the checkout git credentials for its
160+
# own short-lived OIDC token (the first live run died here with
161+
# 'Invalid username or token') — push with the job token explicitly.
162+
git push "https://x-access-token:${GH_TOKEN}@github.com/${GH_REPO}.git" "HEAD:refs/heads/${branch}"
160163
{
161164
echo "Files the paper requested in #${ISSUE} (label: $(cat /tmp/issue_label.txt))."
162165
echo

0 commit comments

Comments
 (0)