Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e782c3a

Browse filesBrowse files
authored
Merge pull request #2612 from github/angelapwen/report-linux-runner-release
Telemetry: report OS release for GitHub-hosted Linux runners
2 parents e3c67a0 + f9ada54 commit e782c3a
Copy full SHA for e782c3a

File tree

Expand file treeCollapse file tree

3 files changed

+8
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+8
-3
lines changed

‎lib/status-report.js

Copy file name to clipboardExpand all lines: lib/status-report.js
+3-1Lines 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

Copy file name to clipboardExpand all lines: lib/status-report.js.map
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/status-report.ts
+4-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.