mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 06:30:10 +08:00
Include CodeQL CLI and action versions in status reports
This commit is contained in:
13
src/util.ts
13
src/util.ts
@@ -604,6 +604,19 @@ export function isGitHubGhesVersionBelow(
|
||||
);
|
||||
}
|
||||
|
||||
let cachedCodeQlVersion: undefined | string = undefined;
|
||||
|
||||
export function cacheCodeQlVersion(version: string): void {
|
||||
if (cachedCodeQlVersion !== undefined) {
|
||||
throw new Error("cacheCodeQlVersion() should be called only once");
|
||||
}
|
||||
cachedCodeQlVersion = version;
|
||||
}
|
||||
|
||||
export function getCachedCodeQlVersion(): undefined | string {
|
||||
return cachedCodeQlVersion;
|
||||
}
|
||||
|
||||
export async function codeQlVersionAbove(
|
||||
codeql: CodeQL,
|
||||
requiredVersion: string
|
||||
|
||||
Reference in New Issue
Block a user