File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3357,9 +3357,9 @@ function getBackendIdsFromToken() {
33573357 // missing expected number of claims
33583358 throw InvalidJwtError;
33593359 }
3360- const publicRunId = process.env["GITHUB_JOB "];
3360+ const publicRunId = process.env["GITHUB_RUN_ID "];
33613361 if (publicRunId == null) {
3362- throw new Error("failed to get GITHUB_JOB environment variable");
3362+ throw new Error("failed to get GITHUB_RUN_ID environment variable");
33633363 }
33643364 const ids = {
33653365 workflowRunBackendId: scopeParts[1],
@@ -3368,6 +3368,7 @@ function getBackendIdsFromToken() {
33683368 };
33693369 core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`);
33703370 core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`);
3371+ core.debug(`Public Run ID: ${ids.publicRunId}`);
33713372 return ids;
33723373 }
33733374 throw InvalidJwtError;
Original file line number Diff line number Diff line change @@ -3357,9 +3357,9 @@ function getBackendIdsFromToken() {
33573357 // missing expected number of claims
33583358 throw InvalidJwtError;
33593359 }
3360- const publicRunId = process.env["GITHUB_JOB "];
3360+ const publicRunId = process.env["GITHUB_RUN_ID "];
33613361 if (publicRunId == null) {
3362- throw new Error("failed to get GITHUB_JOB environment variable");
3362+ throw new Error("failed to get GITHUB_RUN_ID environment variable");
33633363 }
33643364 const ids = {
33653365 workflowRunBackendId: scopeParts[1],
@@ -3368,6 +3368,7 @@ function getBackendIdsFromToken() {
33683368 };
33693369 core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`);
33703370 core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`);
3371+ core.debug(`Public Run ID: ${ids.publicRunId}`);
33713372 return ids;
33723373 }
33733374 throw InvalidJwtError;
You can’t perform that action at this time.
0 commit comments