Skip to content

Commit b6b7b0b

Browse files
committed
Set git perms
1 parent 3036c50 commit b6b7b0b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/commands/fix/pnpm-fix.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ export async function pnpmFix(
258258
const commitMsg = `fix: upgrade ${name} to ${targetVersion}`
259259
const { owner, repo } = getRepoInfo()
260260
// eslint-disable-next-line no-await-in-loop
261+
await spawn('git', [
262+
'remote',
263+
'set-url',
264+
'origin',
265+
`https://x-access-token:${process.env['SOCKET_AUTOFIX_PAT']}@github.com/${owner}/${repo}`
266+
], { cwd })
267+
// eslint-disable-next-line no-await-in-loop
261268
await commitAndPushFix(branchName, commitMsg, cwd)
262269
// eslint-disable-next-line no-await-in-loop
263270
await createPullRequest({

0 commit comments

Comments
 (0)