Add environment variable override

This commit is contained in:
Henry Mercer
2026-03-10 15:41:40 +00:00
parent bef08edf32
commit 55a0f2b2aa
11 changed files with 1928 additions and 1647 deletions
+3 -15
View File
@@ -48,6 +48,7 @@ import {
checkPacksForOverlayCompatibility,
cleanupDatabaseClusterDirectory,
getFileCoverageInformationEnabled,
logFileCoverageOnPrsDeprecationWarning,
initCodeQL,
initConfig,
runDatabaseInitCluster,
@@ -409,21 +410,8 @@ async function run(startedAt: Date) {
);
}
if (
fileCoverageResult.showDeprecationWarning &&
!process.env[EnvVar.DID_LOG_FILE_COVERAGE_ON_PRS_DEPRECATION]
) {
logger.warning(
"Starting April 2026, the CodeQL Action will skip collecting file coverage information on pull requests " +
"to improve analysis performance. File coverage information will still be computed on non-PR analyses. " +
"Repositories owned by an organization can opt out of this change by creating a custom repository property " +
'with the name `github-codeql-file-coverage-on-prs` and the type "True/false", then setting this property to ' +
"`true` in the repository's settings.",
);
core.exportVariable(
EnvVar.DID_LOG_FILE_COVERAGE_ON_PRS_DEPRECATION,
"true",
);
if (fileCoverageResult.showDeprecationWarning) {
logFileCoverageOnPrsDeprecationWarning(logger);
}
await checkInstallPython311(config.languages, codeql);