Include CodeQL CLI and action versions in status reports
This commit is contained in:
parent
d0ee2b4276
commit
f60bb5cc38
12 changed files with 124 additions and 17 deletions
|
|
@ -84,8 +84,8 @@ let cachedGitHubVersion: GitHubVersion | undefined = undefined;
|
|||
* @returns GitHub version
|
||||
*/
|
||||
export async function getGitHubVersionActionsOnly(): Promise<GitHubVersion> {
|
||||
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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue