Skip to content

Commit ded81ce

Browse files
committed
try different remote
1 parent 432488d commit ded81ce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/test/integration/git.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,13 @@ const makeFileChanges = async (
213213

214214
// Push the commit with symlink to GitHub so the API can use it as base.
215215
// Using native git since isomorphic-git push requires explicit auth setup.
216+
// Note: origin points to the local clone source (process.cwd()), not GitHub,
217+
// so we push directly to GitHub using the token.
218+
const githubUrl = `https://x-access-token:${ENV.GITHUB_TOKEN}@github.com/${REPO.owner}/${REPO.repo}.git`;
216219
await new Promise<void>((resolve, reject) => {
217220
const p = execFile(
218221
"git",
219-
["push", "origin", `HEAD:refs/heads/${branch}`],
222+
["push", githubUrl, `HEAD:refs/heads/${branch}`],
220223
{ cwd: repoDirectory },
221224
(error) => {
222225
if (error) {

0 commit comments

Comments
 (0)