Skip to content

Commit a66f25b

Browse files
committed
Use a pat env var if available for opening prs
1 parent c3c682e commit a66f25b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/fix/pnpm-fix.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ async function createPullRequest({
9393
base?: string
9494
body?: string
9595
}) {
96-
const octokit = new Octokit({ auth: process.env['GITHUB_TOKEN'] })
96+
const octokit = new Octokit({
97+
auth: process.env['SOCKET_AUTOFIX_PAT'] ?? process.env['GITHUB_TOKEN']
98+
})
9799
await octokit.pulls.create({
98100
owner,
99101
repo,

0 commit comments

Comments
 (0)