Merge branch 'main' into henrymercer/avoid-waiting-for-timeout

This commit is contained in:
Henry Mercer 2023-01-20 16:29:49 +00:00
commit 8e4a1d6e60
9014 changed files with 730797 additions and 508780 deletions

View file

@ -630,24 +630,6 @@ export function getMlPoweredJsQueriesStatus(config: Config): string {
}
}
/**
* Prompt the customer to upgrade to CodeQL Action v2, if appropriate.
*
* Check whether a customer is running v1. If they are, and we can determine that the GitHub
* instance supports v2, then log an error that v1 is deprecated and prompt the customer to
* upgrade to v2.
*/
export async function checkActionVersion(version: string) {
if (!semver.satisfies(version, ">=2")) {
core.error(
"This version of the CodeQL Action was deprecated on January 18th, 2023, and is no longer " +
"updated or supported. For better performance, improved security, and new features, " +
"upgrade to v2. For more information, see " +
"https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/"
);
}
}
/*
* Returns whether we are in test mode.
*