Skip to content

Commit 614b64c

Browse files
committed
Diff-informed analysis: disable for GHES below 3.19
1 parent aefb854 commit 614b64c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/diff-informed-analysis-utils.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import * as path from "path";
33

44
import * as actionsUtil from "./actions-util";
55
import type { PullRequestBranches } from "./actions-util";
6+
import { getGitHubVersion } from "./api-client";
67
import type { CodeQL } from "./codeql";
78
import { Feature, FeatureEnablement } from "./feature-flags";
89
import { Logger } from "./logging";
10+
import { GitHubVariant, satisfiesGHESVersion } from "./util";
911

1012
/**
1113
* Check if the action should perform diff-informed analysis.
@@ -37,6 +39,14 @@ export async function getDiffInformedAnalysisBranches(
3739
return undefined;
3840
}
3941

42+
const gitHubVersion = await getGitHubVersion();
43+
if (
44+
gitHubVersion.type === GitHubVariant.GHES &&
45+
satisfiesGHESVersion(gitHubVersion.version, "<3.19", true)
46+
) {
47+
return undefined;
48+
}
49+
4050
const branches = actionsUtil.getPullRequestBranches();
4151
if (!branches) {
4252
logger.info(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy