Add telemetry diagnostic to track whether repo property is used

This commit is contained in:
Henry Mercer
2026-03-09 17:12:02 +00:00
parent 9e8c05933f
commit a3fdd0e0b5
2 changed files with 29 additions and 0 deletions
+10
View File
@@ -109761,6 +109761,16 @@ async function run(startedAt) {
)
);
}
if (config.enableFileCoverageInformation && isAnalyzingPullRequest() && repositoryPropertiesResult.orElse({})["github-codeql-file-coverage-on-prs" /* FILE_COVERAGE_ON_PRS */] === true) {
addNoLanguageDiagnostic(
config,
makeTelemetryDiagnostic(
"codeql-action/file-coverage-on-prs-enabled-by-repository-property",
"File coverage on PRs enabled by repository property",
{}
)
);
}
await checkInstallPython311(config.languages, codeql);
} catch (unwrappedError) {
const error3 = wrapError(unwrappedError);