Skip to content

Commit f9ada54

Browse files
committed
Telemetry: report OS release for GitHub-hosted Linux runners
1 parent 9222a97 commit f9ada54

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

lib/status-report.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/status-report.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/status-report.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
getWorkflowRunAttempt,
1111
getActionVersion,
1212
getRequiredInput,
13+
isSelfHostedRunner,
1314
} from "./actions-util";
1415
import { getAnalysisKey, getApiClient } from "./api-client";
1516
import { type Config } from "./config-utils";
@@ -340,7 +341,9 @@ export async function createStatusReportBase(
340341
// Values other than X86, X64, ARM, or ARM64 are discarded server side
341342
statusReport.runner_arch = process.env["RUNNER_ARCH"];
342343
}
343-
if (runnerOs === "Windows" || runnerOs === "macOS") {
344+
if (!(runnerOs === "Linux" && isSelfHostedRunner())) {
345+
// We do not report the release number for Linux self-hosted runners
346+
// because the custom build suffix may be private customer information.
344347
statusReport.runner_os_release = os.release();
345348
}
346349
if (codeQlCliVersion !== undefined) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy