GHES 3.1 has been deprecated end of June 2022.

Therefore, we do not need to support the workaround for
action telemetry anymore.
This commit is contained in:
Cornelius Riemenschneider 2022-10-18 14:20:52 +02:00
parent 96c8872f06
commit f3a27d6945
9 changed files with 4 additions and 70 deletions

7
lib/actions-util.js generated
View file

@ -563,13 +563,6 @@ const INCOMPATIBLE_MSG = "CodeQL Action version is incompatible with the code sc
* Returns whether sending the status report was successful of not.
*/
async function sendStatusReport(statusReport) {
const gitHubVersion = await api.getGitHubVersionActionsOnly();
if ((0, util_1.isGitHubGhesVersionBelow)(gitHubVersion, "3.2.0")) {
// GHES 3.1 and earlier versions reject unexpected properties, which means
// that they will reject status reports with newly added properties.
// Inhibiting status reporting for GHES < 3.2 avoids such failures.
return true;
}
const statusReportJSON = JSON.stringify(statusReport);
core.debug(`Sending status report: ${statusReportJSON}`);
// If in test mode we don't want to upload the results