Add detection for GitHub AE.

This commit is contained in:
Chris Gavin 2021-02-13 11:06:03 +00:00
parent 781e3bc540
commit 0656b2c1ad
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
10 changed files with 27 additions and 6 deletions

2
lib/upload-lib.js generated
View file

@ -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 === "dotcom" ||
if (gitHubVersion.type !== "ghes" ||
semver.satisfies(gitHubVersion.version, `>=3.1`)) {
if (process.env.GITHUB_EVENT_NAME === "pull_request" &&
process.env.GITHUB_EVENT_PATH) {