mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 17:17:15 +00:00
Fix bug where run attempt was reported as run ID (#1661)
This commit is contained in:
@@ -331,7 +331,7 @@ export function getWorkflowRunID(): number {
|
||||
* Get the workflow run attempt number.
|
||||
*/
|
||||
export function getWorkflowRunAttempt(): number {
|
||||
const workflowRunAttemptString = getRequiredEnvParam("GITHUB_RUN_ID");
|
||||
const workflowRunAttemptString = getRequiredEnvParam("GITHUB_RUN_ATTEMPT");
|
||||
const workflowRunAttempt = parseInt(workflowRunAttemptString, 10);
|
||||
if (Number.isNaN(workflowRunAttempt)) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user