Skip to content

Commit a177e4d

Browse files
committed
Fallback to process.env['GITHUB_TOKEN']
1 parent 48886e4 commit a177e4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/fix/pnpm-fix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export async function pnpmFix(
296296
'remote',
297297
'set-url',
298298
'origin',
299-
`https://x-access-token:${process.env['SOCKET_AUTOFIX_PAT']}@github.com/${owner}/${repo}`
299+
`https://x-access-token:${process.env['SOCKET_AUTOFIX_PAT'] ?? process.env['GITHUB_TOKEN']}@github.com/${owner}/${repo}`
300300
],
301301
{ cwd }
302302
)

0 commit comments

Comments
 (0)