mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Add environment variable override
This commit is contained in:
+3
-15
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user