Include CodeQL CLI and action versions in status reports

This commit is contained in:
Chuan-kai Lin 2022-03-17 10:07:29 -07:00
parent d0ee2b4276
commit f60bb5cc38
12 changed files with 124 additions and 17 deletions

4
lib/api-client.js generated
View file

@ -81,8 +81,8 @@ let cachedGitHubVersion = undefined;
* @returns GitHub version
*/
async function getGitHubVersionActionsOnly() {
if (!util.isActions) {
throw new Error("This getGitHubVersion() function works only in an action");
if (!util.isActions()) {
throw new Error("getGitHubVersionActionsOnly() works only in an action");
}
if (cachedGitHubVersion === undefined) {
cachedGitHubVersion = await util.getGitHubVersion(getApiDetails());