Skip to content

Commit 470e913

Browse files
committed
Suggestion for telemetry from CR
1 parent 37ea6e6 commit 470e913

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/init-action.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ async function sendCompletedStatusReport(
164164

165165
const initStatusReport: InitStatusReport = {
166166
...statusReportBase,
167-
tools_input: effectiveToolsInput || "",
167+
tools_input: getOptionalInput("tools") || "",
168+
computed_tools_input: effectiveToolsInput || "",
168169
tools_resolved_version: toolsVersion,
169170
tools_source: toolsSource || ToolsSource.Unknown,
170171
workflow_languages: workflowLanguages || "",

src/setup-codeql-action.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ async function sendCompletedStatusReport(
6868

6969
const initStatusReport: InitStatusReport = {
7070
...statusReportBase,
71-
tools_input: effectiveToolsInput || "",
71+
tools_input: getOptionalInput("tools") || "",
72+
computed_tools_input: effectiveToolsInput || "",
7273
tools_resolved_version: toolsVersion,
7374
tools_source: toolsSource || ToolsSource.Unknown,
7475
workflow_languages: "",

src/status-report.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ export async function sendStatusReport<S extends StatusReportBase>(
482482
export interface InitStatusReport extends StatusReportBase {
483483
/** Value given by the user as the "tools" input. */
484484
tools_input: string;
485+
/** The effective tools input that was used, after applying defaults and repository properties. */
486+
computed_tools_input: string;
485487
/** Version of the bundle used. */
486488
tools_resolved_version: string;
487489
/** Where the bundle originated from. */

0 commit comments

Comments
 (0)