Store the default CodeQL bundle version in a JSON file.
This commit is contained in:
parent
6e18b27d4d
commit
97eafbc804
6 changed files with 13 additions and 4 deletions
3
lib/codeql.js
generated
3
lib/codeql.js
generated
|
|
@ -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
3
lib/defaults.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"bundleVersion": "codeql-bundle-20200630"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue