mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 17:39:15 +00:00
Move to separate function
This commit is contained in:
Generated
+14
-7
@@ -92660,13 +92660,10 @@ async function run(startedAt) {
|
||||
apiDetails,
|
||||
features,
|
||||
repositoryProperties,
|
||||
enableFileCoverageInformation: (
|
||||
// Always enable file coverage information in debug mode
|
||||
debugMode || // We're most interested in speeding up PRs, and we want to keep
|
||||
// submitting file coverage information for the default branch since
|
||||
// it is used to populate the status page.
|
||||
!isAnalyzingPullRequest() || // For now, restrict this feature to the GitHub org
|
||||
repositoryNwo.owner !== "github" || !await features.getValue("skip_file_coverage_on_prs" /* SkipFileCoverageOnPrs */)
|
||||
enableFileCoverageInformation: await getFileCoverageInformationEnabled(
|
||||
debugMode,
|
||||
repositoryNwo,
|
||||
features
|
||||
),
|
||||
logger
|
||||
});
|
||||
@@ -92960,6 +92957,16 @@ function getTrapCachingEnabled() {
|
||||
if (!isHostedRunner()) return false;
|
||||
return true;
|
||||
}
|
||||
async function getFileCoverageInformationEnabled(debugMode, repositoryNwo, features) {
|
||||
return (
|
||||
// Always enable file coverage information in debug mode
|
||||
debugMode || // We're most interested in speeding up PRs, and we want to keep
|
||||
// submitting file coverage information for the default branch since
|
||||
// it is used to populate the status page.
|
||||
!isAnalyzingPullRequest() || // For now, restrict this feature to the GitHub org
|
||||
repositoryNwo.owner !== "github" || !await features.getValue("skip_file_coverage_on_prs" /* SkipFileCoverageOnPrs */)
|
||||
);
|
||||
}
|
||||
async function recordZstdAvailability(config, zstdAvailability) {
|
||||
addDiagnostic(
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user