Convert GitHub variant to an enum.
This commit is contained in:
parent
0656b2c1ad
commit
c9ca4ec1bd
24 changed files with 67 additions and 52 deletions
2
lib/upload-lib.js
generated
2
lib/upload-lib.js
generated
|
|
@ -162,7 +162,7 @@ function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, wo
|
|||
base_sha: undefined,
|
||||
};
|
||||
// This behaviour can be made the default when support for GHES 3.0 is discontinued.
|
||||
if (gitHubVersion.type !== "ghes" ||
|
||||
if (gitHubVersion.type !== util.GitHubVariant.GHES ||
|
||||
semver.satisfies(gitHubVersion.version, `>=3.1`)) {
|
||||
if (process.env.GITHUB_EVENT_NAME === "pull_request" &&
|
||||
process.env.GITHUB_EVENT_PATH) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue