Store the default CodeQL bundle version in a JSON file.

This commit is contained in:
Chris Gavin 2020-08-10 12:34:11 +01:00
parent 6e18b27d4d
commit 97eafbc804
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
6 changed files with 13 additions and 4 deletions

3
lib/codeql.js generated
View file

@ -22,6 +22,7 @@ const stream = __importStar(require("stream"));
const globalutil = __importStar(require("util"));
const v4_1 = __importDefault(require("uuid/v4"));
const api = __importStar(require("./api-client"));
const defaults = __importStar(require("./defaults.json")); // Referenced from codeql-action-sync-tool!
const util = __importStar(require("./util"));
/**
* Stores the CodeQL object, and is populated by `setupCodeQL` or `getCodeQL`.
@ -33,7 +34,7 @@ let cachedCodeQL = undefined;
* Value is set by setupCodeQL and read by getCodeQL.
*/
const CODEQL_ACTION_CMD = "CODEQL_ACTION_CMD";
const CODEQL_BUNDLE_VERSION = "codeql-bundle-20200630";
const CODEQL_BUNDLE_VERSION = defaults.bundleVersion;
const CODEQL_BUNDLE_NAME = "codeql-bundle.tar.gz";
const CODEQL_DEFAULT_ACTION_REPOSITORY = "github/codeql-action";
function getCodeQLActionRepository() {

File diff suppressed because one or more lines are too long

3
lib/defaults.json Normal file
View file

@ -0,0 +1,3 @@
{
"bundleVersion": "codeql-bundle-20200630"
}