diff --git a/.eslintrc.json b/.eslintrc.json index 20f7f5b7b..22f8e67e0 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -18,7 +18,7 @@ "import/no-amd": "error", "import/no-commonjs": "error", "import/no-dynamic-require": "error", - "import/no-extraneous-dependencies": ["error", {"devDependencies": false}], + "import/no-extraneous-dependencies": ["error"], "import/no-namespace": "off", "import/no-unresolved": "error", "import/no-webpack-loader-syntax": "error", @@ -46,7 +46,6 @@ "@typescript-eslint/restrict-template-expressions": "off", "func-style": "off", "github/no-then": "off", - "import/no-extraneous-dependencies": "off", "no-shadow": "off" } }] diff --git a/lib/codeql.js b/lib/codeql.js index c80d456d5..e5282b2bf 100644 --- a/lib/codeql.js +++ b/lib/codeql.js @@ -6,9 +6,6 @@ var __importStar = (this && this.__importStar) || function (mod) { result["default"] = mod; return result; }; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; Object.defineProperty(exports, "__esModule", { value: true }); const api = __importStar(require("./api-client")); const defaults = __importStar(require("./defaults.json")); // Referenced from codeql-action-sync-tool! @@ -21,10 +18,10 @@ const stream = __importStar(require("stream")); const toolcache = __importStar(require("@actions/tool-cache")); const toolrunnner = __importStar(require("@actions/exec/lib/toolrunner")); const util = __importStar(require("./util")); -const v4_1 = __importDefault(require("uuid/v4")); const error_matcher_1 = require("./error-matcher"); const actions_util_1 = require("./actions-util"); const toolrunner_error_catcher_1 = require("./toolrunner-error-catcher"); +const uuid_1 = require("uuid"); /** * Stores the CodeQL object, and is populated by `setupCodeQL` or `getCodeQL`. * Can be overridden in tests using `setCodeQL`. @@ -98,7 +95,7 @@ async function getCodeQLBundleDownloadURL(githubAuth, githubUrl, mode, logger) { // This can be removed once https://github.com/actions/toolkit/pull/530 is merged and released. async function toolcacheDownloadTool(url, headers, tempDir, logger) { const client = new http.HttpClient("CodeQL Action"); - const dest = path.join(tempDir, v4_1.default()); + const dest = path.join(tempDir, uuid_1.v4()); const response = await client.get(url, headers); if (response.message.statusCode !== 200) { logger.info(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`); diff --git a/lib/codeql.js.map b/lib/codeql.js.map index f04a1a68d..0ea64f8f8 100644 --- a/lib/codeql.js.map +++ b/lib/codeql.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.js","sourceRoot":"","sources":["../src/codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAoC;AACpC,0DAA4C,CAAC,2CAA2C;AACxF,uCAAyB;AACzB,iDAAmC;AACnC,2DAA6C;AAC7C,2CAA6B;AAC7B,+CAAiC;AACjC,+CAAiC;AACjC,+DAAiD;AACjD,0EAA4D;AAC5D,6CAA+B;AAE/B,iDAA6B;AAK7B,mDAAgD;AAChD,iDAAqD;AACrD,yEAAoE;AA4FpE;;;GAGG;AACH,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD,MAAM,qBAAqB,GAAG,QAAQ,CAAC,aAAa,CAAC;AACrD,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAClD,MAAM,gCAAgC,GAAG,sBAAsB,CAAC;AAEhE,SAAS,yBAAyB,CAAC,IAAe;IAChD,IAAI,IAAI,KAAK,SAAS,EAAE;QACtB,OAAO,gCAAgC,CAAC;KACzC;IAED,iDAAiD;IACjD,+EAA+E;IAC/E,+GAA+G;IAC/G,MAAM,UAAU,GAAG,kCAAmB,CAAC,aAAa,CAAC,CAAC;IACtD,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC;IACzE,MAAM,kBAAkB,GAAG,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;IACvE,kFAAkF;IAClF,kFAAkF;IAClF,IACE,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC;QACnC,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,EACnC;QACA,OAAO,gCAA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AAQ,CAAC,IAAI,CACjD,GAAG,CACJ,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,yBAAyB,CAAC;YACzD,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;SACtB;QACD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACvB,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,SAAS,EAAE;gBACvD,MAAM,GAAG,GAAG,yBAAyB,QAAQ,CAAC,IAAI,CAChD,GAAG,CACJ,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,8BAA8B,CAAC;gBACxD,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;aACtB;YACD,OAAO,GAAG,CAAC,EAAE,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;IACD,MAAM,GAAG,GAAG,cAAc,OAAC,OAAO,0CAAG,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IACjE,MAAM,QAAQ,GACZ,IAAI,CAAC,MAAM,KAAK,CAAC;QACf,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC;QACnC,CAAC,CAAC,eAAe,OACb,OAAO,0CAAG,IAAI,CAAC,CAAC,CAAC,SACjB,IAAI,0CAAE,KAAK,CAAC,CAAC,GACb,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACzB,CAAC;IACR,OAAO,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;AAzCD,0CAyCC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 441d94c4f..1f573a04c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -67,6 +67,11 @@ "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" } } }, @@ -4339,9 +4344,9 @@ } }, "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.0.tgz", + "integrity": "sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ==" }, "v8-compile-cache": { "version": "2.1.1", diff --git a/package.json b/package.json index 72e655744..fecef2d12 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "md5": "^2.2.1", "path": "^0.12.7", "semver": "^7.3.2", + "uuid": "^8.3.0", "zlib": "^1.0.5" }, "//": [ diff --git a/src/codeql.ts b/src/codeql.ts index b1c3ee2e0..bd289f28d 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -10,14 +10,13 @@ import * as toolcache from "@actions/tool-cache"; import * as toolrunnner from "@actions/exec/lib/toolrunner"; import * as util from "./util"; -import uuidV4 from "uuid/v4"; - import { IHeaders } from "@actions/http-client/interfaces"; import { Language } from "./languages"; import { Logger } from "./logging"; import { errorMatchers } from "./error-matcher"; import { getRequiredEnvParam } from "./actions-util"; import { toolrunnerErrorCatcher } from "./toolrunner-error-catcher"; +import { v4 as uuidV4 } from "uuid"; type Options = Array;