diff --git a/lib/status-report.js b/lib/status-report.js index 44e83e0f88..cace20a92c 100644 --- a/lib/status-report.js +++ b/lib/status-report.js @@ -195,7 +195,9 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi // Values other than X86, X64, ARM, or ARM64 are discarded server side statusReport.runner_arch = process.env["RUNNER_ARCH"]; } - if (runnerOs === "Windows" || runnerOs === "macOS") { + if (!(runnerOs === "Linux" && (0, actions_util_1.isSelfHostedRunner)())) { + // We do not report the release number for Linux self-hosted runners + // because the custom build suffix may be private customer information. statusReport.runner_os_release = os.release(); } if (codeQlCliVersion !== undefined) { diff --git a/lib/status-report.js.map b/lib/status-report.js.map index 47fed43e2b..8906a3fccd 100644 --- a/lib/status-report.js.map +++ b/lib/status-report.js.map @@ -1 +1 @@ -{"version":3,"file":"status-report.js","sourceRoot":"","sources":["../src/status-report.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,oDAKC;AAmHD,4CASC;AAED,0DAaC;AAkDD,wDAsHC;AAmBD,4CAoEC;AA/bD,uCAAyB;AAEzB,oDAAsC;AAEtC,iDAQwB;AACxB,6CAA4D;AAE5D,uCAAmC;AACnC,+CAAuC;AAEvC,iCAWgB;AAEhB,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,gCAAkB,CAAA;IAClB,2BAAa,CAAA;IACb,oCAAsB,CAAA;IACtB,wDAA0C,CAAA;IAC1C,0CAA4B,CAAA;AAC9B,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED;;;;;;;GAOG;AACH,SAAgB,oBAAoB,CAAC,UAAsB;IACzD,IAAI,UAAU,KAAK,UAAU,CAAC,WAAW,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,oBAAM,CAAC,mBAAmB,CAAC,KAAK,MAAM,CAAC;AAC5D,CAAC;AASD,8EAA8E;AAC9E,IAAY,SAKX;AALD,WAA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CAAC,KAAK,iBAAiB,EACjD,CAAC;wBACD,IAAI,CAAC,OAAO,CACV,mFAAmF;4BACjF,yDAAyD;4BACzD,iLAAiL;4BACjL,OAAO,gBAAM,CAAC,gBAAgB,yDAAyD,CAC1F,CAAC;oBACJ,CAAC;yBAAM,CAAC;wBACN,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;oBAC1B,CAAC;oBACD,OAAO;gBACT,KAAK,GAAG;oBACN,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;oBACxB,OAAO;gBACT,KAAK,GAAG;oBACN,+CAA+C;oBAC/C,2EAA2E;oBAC3E,4EAA4E;oBAC5E,IAAI,IAAA,0BAAmB,EAAC,mBAAmB,CAAC,KAAK,wBAAiB,EAAE,CAAC;wBACnE,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;oBAC/B,CAAC;yBAAM,CAAC;wBACN,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;oBAC9B,CAAC;oBACD,OAAO;YACX,CAAC;QACH,CAAC;QAED,mFAAmF;QACnF,0EAA0E;QAC1E,IAAI,CAAC,OAAO,CACV,0EAA0E,IAAA,sBAAe,EACvF,CAAC,CACF,EAAE,CACJ,CAAC;IACJ,CAAC;AACH,CAAC"} \ No newline at end of file +{"version":3,"file":"status-report.js","sourceRoot":"","sources":["../src/status-report.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,oDAKC;AAmHD,4CASC;AAED,0DAaC;AAkDD,wDAwHC;AAmBD,4CAoEC;AAlcD,uCAAyB;AAEzB,oDAAsC;AAEtC,iDASwB;AACxB,6CAA4D;AAE5D,uCAAmC;AACnC,+CAAuC;AAEvC,iCAWgB;AAEhB,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,gCAAkB,CAAA;IAClB,2BAAa,CAAA;IACb,oCAAsB,CAAA;IACtB,wDAA0C,CA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src/status-report.ts b/src/status-report.ts index d426f75ddd..14972c5da4 100644 --- a/src/status-report.ts +++ b/src/status-report.ts @@ -10,6 +10,7 @@ import { getWorkflowRunAttempt, getActionVersion, getRequiredInput, + isSelfHostedRunner, } from "./actions-util"; import { getAnalysisKey, getApiClient } from "./api-client"; import { type Config } from "./config-utils"; @@ -340,7 +341,9 @@ export async function createStatusReportBase( // Values other than X86, X64, ARM, or ARM64 are discarded server side statusReport.runner_arch = process.env["RUNNER_ARCH"]; } - if (runnerOs === "Windows" || runnerOs === "macOS") { + if (!(runnerOs === "Linux" && isSelfHostedRunner())) { + // We do not report the release number for Linux self-hosted runners + // because the custom build suffix may be private customer information. statusReport.runner_os_release = os.release(); } if (codeQlCliVersion !== undefined) {