From 98f7bbd6102f2c11acb5631e38386a1837dca5a5 Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Mon, 10 Apr 2023 13:02:23 -0700 Subject: [PATCH] Add `workflow_run_attempt` data to status report (#1640) --- CHANGELOG.md | 2 +- lib/actions-util.js | 6 ++++++ lib/actions-util.js.map | 2 +- lib/util.js | 6 +++--- lib/util.js.map | 2 +- src/actions-util.ts | 8 ++++++++ src/util.ts | 6 +++--- 7 files changed, 23 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec7df10484..3474fcbe27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [UNRELEASED] -No user facing changes. +- Include the value of the `GITHUB_RUN_ATTEMPT` environment variable in the telemetry sent to GitHub. [#1640](https://github.com/github/codeql-action/pull/1640) ## 2.2.11 - 06 Apr 2023 diff --git a/lib/actions-util.js b/lib/actions-util.js index 65c3473fdf..06673b839d 100644 --- a/lib/actions-util.js +++ b/lib/actions-util.js @@ -295,6 +295,11 @@ async function createStatusReportBase(actionName, status, actionStartedAt, cause if (workflowRunIDStr) { workflowRunID = parseInt(workflowRunIDStr, 10); } + const workflowRunAttemptStr = process.env["GITHUB_RUN_ATTEMPT"]; + let workflowRunAttempt = -1; + if (workflowRunAttemptStr) { + workflowRunAttempt = parseInt(workflowRunAttemptStr, 10); + } const workflowName = process.env["GITHUB_WORKFLOW"] || ""; const jobName = process.env["GITHUB_JOB"] || ""; const analysis_key = await getAnalysisKey(); @@ -314,6 +319,7 @@ async function createStatusReportBase(actionName, status, actionStartedAt, cause } const statusReport = { workflow_run_id: workflowRunID, + workflow_run_attempt: workflowRunAttempt, workflow_name: workflowName, job_name: jobName, analysis_key, diff --git a/lib/actions-util.js.map b/lib/actions-util.js.map index fc06d67cb6..9a7fbfde72 100644 --- a/lib/actions-util.js.map +++ b/lib/actions-util.js.map @@ -1 +1 @@ -{"version":3,"file":"actions-util.js","sourceRoot":"","sources":["../src/actions-util.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AM,KAAK,CAAC,EAAE;gBACxB,IAAI,CAAC,IAAI,CAAC,oCAAoC,aAAa,GAAG,CAAC,CAAC;aACjE;YACD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;gBAC3B,IAAI,KAAK,CAAC,MAAM,EAAE,EAAE;oBAClB,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;oBACnD,IAAI,CAAC,UAAU,CACb,uBAAuB,QAAQ,MAAM,KAAK,CAAC,IAAI,sBAAsB,YAAY,EAAE,CACpF,CAAC;oBACF,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC;oBACpD,IAAI,CAAC,QAAQ,EAAE,CAAC;iBACjB;qBAAM,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE;oBAC9B,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;iBAC7C;aACF;QACH,CAAC,CAAC;QACF,YAAY,CAAC,aAAa,CAAC,CAAC;KAC7B;AACH,CAAC;AA7BD,wCA6BC;AAID,qHAAqH;AACrH,SAAgB,cAAc,CAAC,KAAyB;IACtD,QAAQ,KAAK,EAAE;QACb,KAAK,SAAS,CAAC;QACf,KAAK,MAAM,CAAC;QACZ,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC;QAClB,KAAK,OAAO,CAAC;QACb,KAAK,cAAc;YACjB,OAAO,cAAc,CAAC;QACxB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC;QACjB;YACE,IAAI,CAAC,OAAO,CACV,oDAAoD,KAAK,2BAA2B,CACrF,CAAC;YACF,OAAO,QAAQ,CAAC;KACnB;AACH,CAAC;AAjBD,wCAiBC"} \ No newline at end of file +{"version":3,"file":"actions-util.js","sourceRoot":"","sources":["../src/actions-util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;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,OAAO,CACV,oDAAoD,KAAK,2BAA2B,CACrF,CAAC;YACF,OAAO,QAAQ,CAAC;KACnB;AACH,CAAC;AAjBD,wCAiBC"} \ No newline at end of file diff --git a/lib/util.js b/lib/util.js index 7ba3953e75..43bce138dc 100644 --- a/lib/util.js +++ b/lib/util.js @@ -337,9 +337,9 @@ exports.assertNever = assertNever; * knowing what version of CodeQL we're running. */ function initializeEnvironment(version) { - core.exportVariable(shared_environment_1.EnvVar.VERSION, version); - core.exportVariable(shared_environment_1.EnvVar.FEATURE_SARIF_COMBINE, "true"); - core.exportVariable(shared_environment_1.EnvVar.FEATURE_WILL_UPLOAD, "true"); + core.exportVariable(String(shared_environment_1.EnvVar.VERSION), version); + core.exportVariable(String(shared_environment_1.EnvVar.FEATURE_SARIF_COMBINE), "true"); + core.exportVariable(String(shared_environment_1.EnvVar.FEATURE_WILL_UPLOAD), "true"); } exports.initializeEnvironment = initializeEnvironment; /** diff --git a/lib/util.js.map b/lib/util.js.map index a364cf9a57..62f0f5f5a6 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAC7B,+BAAiC;AAEjC,oDAAsC;AACtC,8CAAsB;AACtB,sEAA4C;AAC5C,+CAAiC;AAEjC,6CAA8D;AAC9D,2EAA6D;AAE7D,iDAIwB;AACxB,mDAA6D;AAG7D,6DAI8B;AAE9B;;;GAGG;AACH,MAAM,eAAe,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAE3C;;GAEG;AACU,QAAA,iBAAiB,GAAG,oBAAoB,CAAC;AAEtD;;GAEG;AACU,QAAA,2BAA2B,GAAG,iBAAiB,CAAC;AAE7D;;GAEG;AACU,QAAA,2BAA2B,GAAG,IAAI,CAAC;AA0DhD;;GAEG;AACH,SAAgB,uBAAuB;IAC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AAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAc,CAAC;IACxE,KAAK,GAAG,uBAAuB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/C,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AACtD,CAAC;AARD,sEAQC;AAED,SAAgB,SAAS,CAAC,KAAc;IACtC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACnE,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/src/actions-util.ts b/src/actions-util.ts index 364d83adbf..a5dce8c59f 100644 --- a/src/actions-util.ts +++ b/src/actions-util.ts @@ -313,6 +313,8 @@ export type ActionStatus = export interface StatusReportBase { /** ID of the workflow run containing the action run. */ workflow_run_id: number; + /** Attempt number of the run containing the action run. */ + workflow_run_attempt: number; /** Workflow name. Converted to analysis_name further down the pipeline.. */ workflow_name: string; /** Job name from the workflow. */ @@ -410,6 +412,11 @@ export async function createStatusReportBase( if (workflowRunIDStr) { workflowRunID = parseInt(workflowRunIDStr, 10); } + const workflowRunAttemptStr = process.env["GITHUB_RUN_ATTEMPT"]; + let workflowRunAttempt = -1; + if (workflowRunAttemptStr) { + workflowRunAttempt = parseInt(workflowRunAttemptStr, 10); + } const workflowName = process.env["GITHUB_WORKFLOW"] || ""; const jobName = process.env["GITHUB_JOB"] || ""; const analysis_key = await getAnalysisKey(); @@ -437,6 +444,7 @@ export async function createStatusReportBase( const statusReport: StatusReportBase = { workflow_run_id: workflowRunID, + workflow_run_attempt: workflowRunAttempt, workflow_name: workflowName, job_name: jobName, analysis_key, diff --git a/src/util.ts b/src/util.ts index 5e4e46dacc..f3d310b1e3 100644 --- a/src/util.ts +++ b/src/util.ts @@ -438,9 +438,9 @@ export function assertNever(value: never): never { * knowing what version of CodeQL we're running. */ export function initializeEnvironment(version: string) { - core.exportVariable(EnvVar.VERSION, version); - core.exportVariable(EnvVar.FEATURE_SARIF_COMBINE, "true"); - core.exportVariable(EnvVar.FEATURE_WILL_UPLOAD, "true"); + core.exportVariable(String(EnvVar.VERSION), version); + core.exportVariable(String(EnvVar.FEATURE_SARIF_COMBINE), "true"); + core.exportVariable(String(EnvVar.FEATURE_WILL_UPLOAD), "true"); } /**