File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3357,9 +3357,9 @@ function getBackendIdsFromToken() {
3357
3357
// missing expected number of claims
3358
3358
throw InvalidJwtError;
3359
3359
}
3360
- const publicRunId = process.env["GITHUB_JOB "];
3360
+ const publicRunId = process.env["GITHUB_RUN_ID "];
3361
3361
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");
3363
3363
}
3364
3364
const ids = {
3365
3365
workflowRunBackendId: scopeParts[1],
@@ -3368,6 +3368,7 @@ function getBackendIdsFromToken() {
3368
3368
};
3369
3369
core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`);
3370
3370
core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`);
3371
+ core.debug(`Public Run ID: ${ids.publicRunId}`);
3371
3372
return ids;
3372
3373
}
3373
3374
throw InvalidJwtError;
Original file line number Diff line number Diff line change @@ -3357,9 +3357,9 @@ function getBackendIdsFromToken() {
3357
3357
// missing expected number of claims
3358
3358
throw InvalidJwtError;
3359
3359
}
3360
- const publicRunId = process.env["GITHUB_JOB "];
3360
+ const publicRunId = process.env["GITHUB_RUN_ID "];
3361
3361
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");
3363
3363
}
3364
3364
const ids = {
3365
3365
workflowRunBackendId: scopeParts[1],
@@ -3368,6 +3368,7 @@ function getBackendIdsFromToken() {
3368
3368
};
3369
3369
core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`);
3370
3370
core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`);
3371
+ core.debug(`Public Run ID: ${ids.publicRunId}`);
3371
3372
return ids;
3372
3373
}
3373
3374
throw InvalidJwtError;
You can’t perform that action at this time.
0 commit comments