Obtain job-level token by default for less privileged runs (#198)

This commit is contained in:
Mateusz Burzyński
2026-01-29 21:30:08 +00:00
committed by pullfrog[bot]
parent bb7e7584d4
commit 2daab6fc78
6 changed files with 73 additions and 37 deletions
+1 -2
View File
@@ -34,7 +34,6 @@ export async function main(): Promise<MainResult> {
const timer = new Timer();
await using tokenRef = await resolveInstallationToken();
process.env.GITHUB_TOKEN = tokenRef.token;
const octokit = createOctokit(tokenRef.token);
const runInfo = await resolveRun({ octokit });
@@ -81,7 +80,7 @@ export async function main(): Promise<MainResult> {
await setupGit({
token: tokenRef.token,
originalToken: tokenRef.originalToken,
githubJobToken: tokenRef.githubJobToken,
bashPermission: payload.bash,
owner: runContext.repo.owner,
name: runContext.repo.name,