diff --git a/actions-toolkit b/actions-toolkit index b6d2f51d..07264572 160000 --- a/actions-toolkit +++ b/actions-toolkit @@ -1 +1 @@ -Subproject commit b6d2f51da3ee3aee51e8779a5dc31b661c92121d +Subproject commit 072645720370a60e6aaa20b08cd8c66daf811b2d diff --git a/dist/merge/index.js b/dist/merge/index.js index a9de91bb..8b35bcce 100644 --- a/dist/merge/index.js +++ b/dist/merge/index.js @@ -3357,9 +3357,9 @@ function getBackendIdsFromToken() { // missing expected number of claims throw InvalidJwtError; } - const publicRunId = process.env["GITHUB_JOB"]; + const publicRunId = process.env["GITHUB_RUN_ID"]; if (publicRunId == null) { - throw new Error("failed to get GITHUB_JOB environment variable"); + throw new Error("failed to get GITHUB_RUN_ID environment variable"); } const ids = { workflowRunBackendId: scopeParts[1], @@ -3368,6 +3368,7 @@ function getBackendIdsFromToken() { }; core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`); core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`); + core.debug(`Public Run ID: ${ids.publicRunId}`); return ids; } throw InvalidJwtError; diff --git a/dist/upload/index.js b/dist/upload/index.js index ca3de9fe..ec98e2f6 100644 --- a/dist/upload/index.js +++ b/dist/upload/index.js @@ -3357,9 +3357,9 @@ function getBackendIdsFromToken() { // missing expected number of claims throw InvalidJwtError; } - const publicRunId = process.env["GITHUB_JOB"]; + const publicRunId = process.env["GITHUB_RUN_ID"]; if (publicRunId == null) { - throw new Error("failed to get GITHUB_JOB environment variable"); + throw new Error("failed to get GITHUB_RUN_ID environment variable"); } const ids = { workflowRunBackendId: scopeParts[1], @@ -3368,6 +3368,7 @@ function getBackendIdsFromToken() { }; core.debug(`Workflow Run Backend ID: ${ids.workflowRunBackendId}`); core.debug(`Workflow Job Run Backend ID: ${ids.workflowJobRunBackendId}`); + core.debug(`Public Run ID: ${ids.publicRunId}`); return ids; } throw InvalidJwtError;