diff --git a/.github/workflows/__debug-artifacts.yml b/.github/workflows/__debug-artifacts.yml index 397e854836..313f10f2c4 100644 --- a/.github/workflows/__debug-artifacts.yml +++ b/.github/workflows/__debug-artifacts.yml @@ -52,7 +52,7 @@ jobs: id: analysis - uses: actions/download-artifact@v2 with: - name: debug-artifacts + name: debug-artifacts-${{ matrix.os }}-${{ matrix.version }} - shell: bash run: | LANGUAGES="cpp csharp go java javascript python" diff --git a/CHANGELOG.md b/CHANGELOG.md index 627b3d66d8..7d3f8d09d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CodeQL Action and CodeQL Runner Changelog +## 1.0.23 - 16 Nov 2021 + +- The `upload-sarif` action now allows multiple uploads in a single job, as long as they have different categories. [#801](https://github.com/github/codeql-action/pull/801) +- Update default CodeQL bundle version to 2.7.1. [#816](https://github.com/github/codeql-action/pull/816) + ## 1.0.22 - 04 Nov 2021 - The `init` step of the Action now supports `ram` and `threads` inputs to limit resource use of CodeQL extractors. These inputs also serve as defaults to the subsequent `analyze` step, which finalizes the database and executes queries. [#738](https://github.com/github/codeql-action/pull/738) diff --git a/lib/actions-util.js b/lib/actions-util.js index 0684cc1e77..c997e52cc2 100644 --- a/lib/actions-util.js +++ b/lib/actions-util.js @@ -19,7 +19,7 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.isAnalyzingDefaultBranch = exports.getRelativeScriptPath = exports.isRunningLocalAction = exports.sendStatusReport = exports.createStatusReportBase = exports.getRef = exports.computeAutomationID = exports.getAutomationID = exports.getAnalysisKey = exports.getWorkflowRunID = exports.getWorkflow = exports.formatWorkflowCause = exports.formatWorkflowErrors = exports.validateWorkflow = exports.getWorkflowErrors = exports.WorkflowErrors = exports.patternIsSuperset = exports.getCommitOid = exports.getToolCacheDirectory = exports.getTemporaryDirectory = exports.getOptionalInput = exports.getRequiredInput = void 0; +exports.sanitizeArifactName = exports.isAnalyzingDefaultBranch = exports.getRelativeScriptPath = exports.isRunningLocalAction = exports.sendStatusReport = exports.createStatusReportBase = exports.getRef = exports.computeAutomationID = exports.getAutomationID = exports.getAnalysisKey = exports.getWorkflowRunID = exports.getWorkflow = exports.formatWorkflowCause = exports.formatWorkflowErrors = exports.validateWorkflow = exports.getWorkflowErrors = exports.WorkflowErrors = exports.patternIsSuperset = exports.getCommitOid = exports.getToolCacheDirectory = exports.getTemporaryDirectory = exports.getOptionalInput = exports.getRequiredInput = void 0; const fs = __importStar(require("fs")); const path = __importStar(require("path")); const core = __importStar(require("@actions/core")); @@ -98,6 +98,7 @@ const getCommitOid = async function (ref = "HEAD") { } catch (e) { core.info(`Failed to call git to get current commit. Continuing with data from environment: ${e}`); + core.info(e.stack || "NO STACK"); return (0, util_1.getRequiredEnvParam)("GITHUB_SHA"); } }; @@ -574,4 +575,8 @@ async function isAnalyzingDefaultBranch() { return currentRef === defaultBranch; } exports.isAnalyzingDefaultBranch = isAnalyzingDefaultBranch; +function sanitizeArifactName(name) { + return name.replace(/[^a-zA-Z0-9_\\-]+/g, ""); +} +exports.sanitizeArifactName = sanitizeArifactName; //# sourceMappingURL=actions-util.js.map \ No newline at end of file diff --git a/lib/actions-util.js.map b/lib/actions-util.js.map index d333d38c53..78b93afcec 100644 --- a/lib/actions-util.js.map +++ b/lib/actions-util.js.map @@ -1 +1 @@ -{"version":3,"file":"actions-util.js","sourceRoot":"","sources":["../src/actions-util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,yEAA2D;AAC3D,kEAAoD;AACpD,8CAAgC;AAEhC,kDAAoC;AACpC,gEAAkD;AAClD,iCAA6E;AAE7E;;;GAGG;AAEH;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,IAAY;IAC3C,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACjD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AI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC;AAJD,sDAIC;AAED,2DAA2D;AAC3D,SAAS,gBAAgB;IACvB,MAAM,aAAa,GAAG,IAAA,0BAAmB,EAAC,mBAAmB,CAAC,CAAC;IAC/D,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;KAC5D;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,KAAK,CACb,2CAA2C,aAAa,KAAK,CAAC,EAAE,CACjE,CAAC;KACH;AACH,CAAC;AAED,uFAAuF;AACvF,0DAA0D;AACnD,KAAK,UAAU,wBAAwB;;IAC5C,sDAAsD;IACtD,IAAI,UAAU,GAAG,MAAM,MAAM,EAAE,CAAC;IAChC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,aAAa,CAAC;QAC/C,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC;QACzC,CAAC,CAAC,UAAU,CAAC;IAEf,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,cAAc,CAAC;IAExD,OAAO,UAAU,KAAK,aAAa,CAAC;AACtC,CAAC;AAXD,4DAWC"} \ No newline at end of file +{"version":3,"file":"actions-util.js","sourceRoot":"","sources":["../src/actions-util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,oDAAsC;AACtC,yEAA2D;AAC3D,kEAAoD;AACpD,8CAAgC;AAEhC,kDAAoC;AACpC,gEAAkD;AAClD,iCAA6E;AAE7E;;;GAGG;AAEH;;;;;;GAMG;AACH,SAAgB,gBAAgB,CAAC,IAAY;IAC3C,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EA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MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,CAAC;IACzE,OAAO,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC;AAJD,sDAIC;AAED,2DAA2D;AAC3D,SAAS,gBAAgB;IACvB,MAAM,aAAa,GAAG,IAAA,0BAAmB,EAAC,mBAAmB,CAAC,CAAC;IAC/D,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;KAC5D;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,KAAK,CACb,2CAA2C,aAAa,KAAK,CAAC,EAAE,CACjE,CAAC;KACH;AACH,CAAC;AAED,uFAAuF;AACvF,0DAA0D;AACnD,KAAK,UAAU,wBAAwB;;IAC5C,sDAAsD;IACtD,IAAI,UAAU,GAAG,MAAM,MAAM,EAAE,CAAC;IAChC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC,aAAa,CAAC;QAC/C,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC;QACzC,CAAC,CAAC,UAAU,CAAC;IAEf,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,0CAAE,cAAc,CAAC;IAExD,OAAO,UAAU,KAAK,aAAa,CAAC;AACtC,CAAC;AAXD,4DAWC;AAED,SAAgB,mBAAmB,CAAC,IAAY;IAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;AAChD,CAAC;AAFD,kDAEC"} \ No newline at end of file diff --git a/lib/actions-util.test.js b/lib/actions-util.test.js index 90b1a790d4..bc6fa2003f 100644 --- a/lib/actions-util.test.js +++ b/lib/actions-util.test.js @@ -440,4 +440,10 @@ on: ["push"] t.deepEqual(await actionsutil.isAnalyzingDefaultBranch(), false); }); }); +(0, ava_1.default)("sanitizeArifactName", (t) => { + t.deepEqual(actionsutil.sanitizeArifactName("hello-world_"), "hello-world_"); + t.deepEqual(actionsutil.sanitizeArifactName("hello`world`"), "helloworld"); + t.deepEqual(actionsutil.sanitizeArifactName("hello===123"), "hello123"); + t.deepEqual(actionsutil.sanitizeArifactName("*m)a&n^y%i££n+v!a:l[i]d"), "manyinvalid"); +}); //# sourceMappingURL=actions-util.test.js.map \ No newline at end of file diff --git a/lib/actions-util.test.js.map b/lib/actions-util.test.js.map index 65dc4c4d9a..9a0db7cc74 100644 --- a/lib/actions-util.test.js.map +++ b/lib/actions-util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"actions-util.test.js","sourceRoot":"","sources":["../src/actions-util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,8CAAuB;AACvB,8CAAgC;AAChC,6CAA+B;AAE/B,4DAA8C;AAC9C,mDAA6C;AAC7C,iCAA0E;AAE1E,SAAS,UAAU,CACjB,MAAgC,EAChC,QAAkC;IAElC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5E,CAAC;AAED,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,IAAA,aAAI,EAAC,qCAAqC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACtD,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;IAC/B,MAAM,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAAA,a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B,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,CAAC;IAC3E,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,UAAU,CAAC,CAAC;IACxE,CAAC,CAAC,SAAS,CACT,WAAW,CAAC,mBAAmB,CAAC,yBAAyB,CAAC,EAC1D,aAAa,CACd,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/analyze-action.js b/lib/analyze-action.js index 15aa21e2e6..5b1670ccbc 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -167,7 +167,13 @@ async function run() { } } async function uploadDebugArtifacts(toUpload, rootDir) { - await artifact.create().uploadArtifact(util_1.DEBUG_ARTIFACT_NAME, toUpload.map((file) => path.normalize(file)), path.normalize(rootDir)); + let suffix = ""; + const matrix = actionsUtil.getRequiredInput("matrix"); + if (matrix !== undefined && matrix !== "null") { + for (const entry of Object.entries(JSON.parse(matrix)).sort()) + suffix += `-${entry[1]}`; + } + await artifact.create().uploadArtifact(actionsUtil.sanitizeArifactName(`${util_1.DEBUG_ARTIFACT_NAME}${suffix}`), toUpload.map((file) => path.normalize(file)), path.normalize(rootDir)); } function listFolder(dir) { const entries = fs.readdirSync(dir, { withFileTypes: true }); diff --git a/lib/analyze-action.js.map b/lib/analyze-action.js.map index 86b40faafd..e712b5349d 100644 --- a/lib/analyze-action.js.map +++ b/lib/analyze-action.js.map @@ -1 +1 @@ -{"version":3,"file":"analyze-action.js","sourceRoot":"","sources":["../src/analyze-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oDAAsC;AAEtC,4DAA8C;AAC9C,uCAMmB;AACnB,qCAAiE;AACjE,iDAAmD;AACnD,uDAAoD;AACpD,uCAA6C;AAC7C,6CAAkD;AAClD,yDAA2C;AAE3C,6CAA+B;AAC/B,iCAA2E;AAE3E,8CAA8C;AAC9C,M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CAAC;SAC3C;aAAM,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE;YAC9B,KAAK,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SAC1D;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAEY,QAAA,UAAU,GAAG,GAAG,EAAE,CAAC;AAEhC,KAAK,UAAU,UAAU;IACvB,IAAI;QACF,MAAM,kBAAU,CAAC;KAClB;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,0BAA0B,KAAK,EAAE,CAAC,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACpB;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"analyze-action.js","sourceRoot":"","sources":["../src/analyze-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oDAAsC;AAEtC,4DAA8C;AAC9C,uCAMmB;AACnB,qCAAiE;AACjE,iDAAmD;AACnD,uDAAoD;AACpD,uCAA6C;AAC7C,6CAAkD;AAClD,yDAA2C;AAE3C,6CAA+B;AAC/B,iCAA2E;AAE3E,8CAA8C;AAC9C,MAAM,GAAG,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAUhC,KAAK,UAAU,gBAAgB,CACpC,SAAe,EACf,KAAuC,EACvC,KAAa;IAEb,MAAM,MAAM,GACV,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,wBAAwB,MAAK,SAAS,IAAI,KAAK,KAAK,SAAS;QAClE,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,SAAS,CAAC;IAChB,MAAM,gBAAgB,GAAG,MAAM,WAAW,CAAC,sBAAsB,CAC/D,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK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KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;SAC3C;aAAM,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE;YAC9B,KAAK,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SAC1D;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAEY,QAAA,UAAU,GAAG,GAAG,EAAE,CAAC;AAEhC,KAAK,UAAU,UAAU;IACvB,IAAI;QACF,MAAM,kBAAU,CAAC;KAClB;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,0BAA0B,KAAK,EAAE,CAAC,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;KACpB;AACH,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/defaults.json b/lib/defaults.json index 3c74f0e2d1..48f9563196 100644 --- a/lib/defaults.json +++ b/lib/defaults.json @@ -1,3 +1,3 @@ { - "bundleVersion": "codeql-bundle-20211025" + "bundleVersion": "codeql-bundle-20211115" } diff --git a/lib/tracer-config.js b/lib/tracer-config.js index 8fa342aa29..04e090620f 100644 --- a/lib/tracer-config.js +++ b/lib/tracer-config.js @@ -182,15 +182,15 @@ async function getCombinedTracerConfig(config, codeql) { tracedLanguageConfigs[language] = await getTracerConfigForLanguage(codeql, config, language); } mainTracerConfig = concatTracerConfigs(tracedLanguageConfigs, config); - } - // Add a couple more variables - mainTracerConfig.env["ODASA_TRACER_CONFIGURATION"] = mainTracerConfig.spec; - const codeQLDir = path.dirname(codeql.getPath()); - if (process.platform === "darwin") { - mainTracerConfig.env["DYLD_INSERT_LIBRARIES"] = path.join(codeQLDir, "tools", "osx64", "libtrace.dylib"); - } - else if (process.platform !== "win32") { - mainTracerConfig.env["LD_PRELOAD"] = path.join(codeQLDir, "tools", "linux64", "${LIB}trace.so"); + // Add a couple more variables + mainTracerConfig.env["ODASA_TRACER_CONFIGURATION"] = mainTracerConfig.spec; + const codeQLDir = path.dirname(codeql.getPath()); + if (process.platform === "darwin") { + mainTracerConfig.env["DYLD_INSERT_LIBRARIES"] = path.join(codeQLDir, "tools", "osx64", "libtrace.dylib"); + } + else if (process.platform !== "win32") { + mainTracerConfig.env["LD_PRELOAD"] = path.join(codeQLDir, "tools", "linux64", "${LIB}trace.so"); + } } // On macos it's necessary to prefix the build command with the runner executable // on order to trace when System Integrity Protection is enabled. diff --git a/lib/tracer-config.js.map b/lib/tracer-config.js.map index ad8d72a7d7..f693353292 100644 --- a/lib/tracer-config.js.map +++ b/lib/tracer-config.js.map @@ -1 +1 @@ -{"version":3,"file":"tracer-config.js","sourceRoot":"","sources":["../src/tracer-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,qCAA8D;AAE9D,2CAAyD;AACzD,6CAA+B;AAC/B,iCAA4C;AAO5C,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC;IACnC,yBAAyB;IACzB,eAAe;IACf,8BAA8B;IAC9B,wBAAwB;IACxB,0BAA0B;CAC3B,CAAC,CAAC;AAEI,KAAK,UAAU,yBAAyB,CAC7C,MAA0B;IAE1B,MAAM,mBAAmB,GAAG,IAAI,CAAC,KAAK,CACpC,EAAE,CAAC,YAAY,CACb,IAAI,CAAC,OAAO,CACV,MAAM,CAAC,UAAU,EACjB,4CAA4C,CAC7C,EACD,MAAM,CACP,CACF,CAAC;IACF,OAAO;QACL,IAAI,EAAE,mBAAmB,CAAC,4BAA4B,CAAC;QACvD,GAAG,EAAE,mBAAmB;KACzB,CAAC;AACJ,CAAC;AAhBD,8DAgBC;AAEM,KAAK,UAAU,0BAA0B,CAC9C,MAAc,EACd,MAA0B,EAC1B,QAAkB;IAElB,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,YAAY,CACnC,IAAI,CAAC,qBAAqB,CAAC,MAAM,EAA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CAAC,IAAI,CACvD,SAAS,EACT,OAAO,EACP,OAAO,EACP,gBAAgB,CACjB,CAAC;KACH;SAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;QACvC,gBAAgB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,IAAI,CAC5C,SAAS,EACT,OAAO,EACP,SAAS,EACT,gBAAgB,CACjB,CAAC;KACH;IAED,iFAAiF;IACjF,iEAAiE;IACjE,iFAAiF;IACjF,qEAAqE;IACrE,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC7E,gBAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,IAAI,CAC/C,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,EACnC,OAAO,EACP,gBAAgB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EACvC,aAAa,CACd,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA1DD,0DA0DC"} \ No newline at end of file +{"version":3,"file":"tracer-config.js","sourceRoot":"","sources":["../src/tracer-config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,qCAA8D;AAE9D,2CAAyD;AACzD,6CAA+B;AAC/B,iCAA4C;AAO5C,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAC;IACnC,yBAAyB;IACzB,eAAe;IACf,8BAA8B;IAC9B,wBAAwB;IACxB,0BAA0B;CAC3B,CAAC,CAAC;AAEI,KAAK,UAAU,yBAAyB,CAC7C,MAA0B;IAE1B,MAAM,mBAAmB,GAAG,IAAI,CAAC,KAAK,CACpC,EAAE,CAAC,YAAY,CACb,IAAI,CAAC,OAAO,CACV,MAAM,CAAC,UAAU,EACjB,4CAA4C,CAC7C,EACD,MAAM,CACP,CACF,CAAC;IACF,OAAO;QACL,IAAI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,GAAG,CAAC,4BAA4B,CAAC,GAAG,gBAAgB,CAAC,IAAI,CAAC;QAC3E,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;QACjD,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;YACjC,gBAAgB,CAAC,GAAG,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,IAAI,CACvD,SAAS,EACT,OAAO,EACP,OAAO,EACP,gBAAgB,CACjB,CAAC;SACH;aAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;YACvC,gBAAgB,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,IAAI,CAC5C,SAAS,EACT,OAAO,EACP,SAAS,EACT,gBAAgB,CACjB,CAAC;SACH;KACF;IAED,iFAAiF;IACjF,iEAAiE;IACjE,iFAAiF;IACjF,qEAAqE;IACrE,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC7E,gBAAgB,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,IAAI,CAC/C,gBAAgB,CAAC,GAAG,CAAC,aAAa,CAAC,EACnC,OAAO,EACP,gBAAgB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EACvC,aAAa,CACd,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AA1DD,0DA0DC"} \ No newline at end of file diff --git a/lib/upload-lib.js b/lib/upload-lib.js index 7836e5be90..27a7f4b36b 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.buildPayload = exports.validateSarifFileSchema = exports.countResultsInSarif = exports.uploadFromRunner = exports.uploadFromActions = exports.findSarifFilesInDir = exports.populateRunAutomationDetails = exports.combineSarifFiles = void 0; +exports.validateUniqueCategory = exports.buildPayload = exports.validateSarifFileSchema = exports.countResultsInSarif = exports.uploadFromRunner = exports.uploadFromActions = exports.findSarifFilesInDir = exports.populateRunAutomationDetails = exports.combineSarifFiles = void 0; const fs = __importStar(require("fs")); const path = __importStar(require("path")); const zlib_1 = __importDefault(require("zlib")); @@ -243,14 +243,7 @@ exports.buildPayload = buildPayload; async function uploadFiles(sarifFiles, repositoryNwo, commitOid, ref, analysisKey, category, analysisName, workflowRunID, sourceRoot, environment, gitHubVersion, apiDetails, logger) { logger.startGroup("Uploading results"); logger.info(`Processing sarif files: ${JSON.stringify(sarifFiles)}`); - if (util.isActions()) { - // This check only works on actions as env vars don't persist between calls to the runner - const sentinelEnvVar = "CODEQL_UPLOAD_SARIF"; - if (process.env[sentinelEnvVar]) { - throw new Error("Aborting upload: only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job"); - } - core.exportVariable(sentinelEnvVar, sentinelEnvVar); - } + validateUniqueCategory(category); // Validate that the files we were asked to upload are all valid SARIF files for (const file of sarifFiles) { validateSarifFileSchema(file, logger); @@ -278,4 +271,29 @@ async function uploadFiles(sarifFiles, repositoryNwo, commitOid, ref, analysisKe num_results_in_sarif: numResultInSarif, }; } +function validateUniqueCategory(category) { + if (util.isActions()) { + // This check only works on actions as env vars don't persist between calls to the runner + const sentinelEnvVar = `CODEQL_UPLOAD_SARIF${category ? `_${sanitize(category)}` : ""}`; + if (process.env[sentinelEnvVar]) { + throw new Error("Aborting upload: only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job per category. " + + "Please specify a unique `category` to call this action multiple times. " + + `Category: ${category ? category : "(none)"}`); + } + core.exportVariable(sentinelEnvVar, sentinelEnvVar); + } +} +exports.validateUniqueCategory = validateUniqueCategory; +/** + * Santizes a string to be used as an environment variable name. + * This will replace all non-alphanumeric characters with underscores. + * There could still be some false category clashes if two uploads + * occur that differ only in their non-alphanumeric characters. This is + * unlikely. + * + * @param str the initial value to sanitize + */ +function sanitize(str) { + return str.replace(/[^a-zA-Z0-9_]/g, "_"); +} //# sourceMappingURL=upload-lib.js.map \ No newline at end of file diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index e40187cc2c..4a9ca1292f 100644 --- a/lib/upload-lib.js.map +++ b/lib/upload-lib.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-lib.js","sourceRoot":"","sources":["../src/upload-lib.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,gDAAwB;AAExB,oDAAsC;AACtC,wDAA+B;AAC/B,uDAAyC;AACzC,+CAAiC;AAEjC,4DAA8C;AAC9C,kDAAoC;AACpC,6DAA+C;AAE/C,6CAAiE;AACjE,gEAAkD;AAClD,6CAA+B;AAE/B,mEAAmE;AACnE,qDAAqD;AACrD,SAAgB,iBAAiB,CAAC,UAAoB;IACpD,MAAM,aAAa,GAAG;QACpB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAW;KAClB,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;QAClC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QACnE,sBAAsB;QACtB,IAAI,aAAa,CAAC,OAAO,KAAK,IAAI,EAAE;YAClC,aAAa,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;SAC7C;aAAM,IAAI,aAAa,CAAC,OAAO,KAAK,WAAW,CAAC,OAAO,EAAE;YACxD,MAAM,IAAI,KAAK,CACb,yCAAyC,aAAa,CAAC,OAAO,QAAQ,WAAW,CAAC,OAAO,EAAE,CAC5F,CAAC;SACH;QAED,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;KAC9C;IAED,OAAO,IAAI,CAAC,SAAS,CAA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;QACD,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;KACrD;AACH,CAAC;AAfD,wDAeC;AAED;;;;;;;;GAQG;AACH,SAAS,QAAQ,CAAC,GAAW;IAC3B,OAAO,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC"} \ No newline at end of file diff --git a/lib/upload-lib.test.js b/lib/upload-lib.test.js index 3cce9ab575..549b42b75d 100644 --- a/lib/upload-lib.test.js +++ b/lib/upload-lib.test.js @@ -113,4 +113,20 @@ ava_1.default.beforeEach(() => { modifiedSarif = uploadLib.populateRunAutomationDetails(sarif, undefined, analysisKey, '{"os": "linux", "language": "javascript"}'); t.deepEqual(modifiedSarif, expectedSarif); }); +(0, ava_1.default)("validateUniqueCategory", (t) => { + t.notThrows(() => uploadLib.validateUniqueCategory(undefined)); + t.throws(() => uploadLib.validateUniqueCategory(undefined)); + t.notThrows(() => uploadLib.validateUniqueCategory("abc")); + t.throws(() => uploadLib.validateUniqueCategory("abc")); + t.notThrows(() => uploadLib.validateUniqueCategory("def")); + t.throws(() => uploadLib.validateUniqueCategory("def")); + // Our category sanitization is not perfect. Here are some examples + // of where we see false clashes + t.notThrows(() => uploadLib.validateUniqueCategory("abc/def")); + t.throws(() => uploadLib.validateUniqueCategory("abc@def")); + t.throws(() => uploadLib.validateUniqueCategory("abc_def")); + t.throws(() => uploadLib.validateUniqueCategory("abc def")); + // this one is fine + t.notThrows(() => uploadLib.validateUniqueCategory("abc_ def")); +}); //# sourceMappingURL=upload-lib.test.js.map \ No newline at end of file diff --git a/lib/upload-lib.test.js.map b/lib/upload-lib.test.js.map index 0989659658..ecc54ebf71 100644 --- a/lib/upload-lib.test.js.map +++ b/lib/upload-lib.test.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-lib.test.js","sourceRoot":"","sources":["../src/upload-lib.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;A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CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3D,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;IAExD,mEAAmE;IACnE,gCAAgC;IAChC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5D,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC;IAE5D,mBAAmB;IACnB,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC,CAAC;AAClE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 86375958ec..72ae2e2d7b 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "codeql", - "version": "1.0.22", + "version": "1.0.23", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package-lock.json b/package-lock.json index 273d0bc117..dc2f6f54f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "codeql", - "version": "1.0.22", + "version": "1.0.23", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "codeql", - "version": "1.0.22", + "version": "1.0.23", "license": "MIT", "dependencies": { "@actions/artifact": "^0.5.2", diff --git a/package.json b/package.json index 73afef6f0d..b6f0d8dd7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeql", - "version": "1.0.22", + "version": "1.0.23", "private": true, "description": "CodeQL action", "scripts": { diff --git a/pr-checks/checks/debug-artifacts.yml b/pr-checks/checks/debug-artifacts.yml index 15f2a8989e..fd852f38e5 100644 --- a/pr-checks/checks/debug-artifacts.yml +++ b/pr-checks/checks/debug-artifacts.yml @@ -13,7 +13,7 @@ steps: id: analysis - uses: actions/download-artifact@v2 with: - name: debug-artifacts + name: debug-artifacts-${{ matrix.os }}-${{ matrix.version }} - shell: bash run: | LANGUAGES="cpp csharp go java javascript python" diff --git a/runner/package-lock.json b/runner/package-lock.json index cb4c72c502..dd9a195b24 100644 --- a/runner/package-lock.json +++ b/runner/package-lock.json @@ -1,6 +1,6 @@ { "name": "codeql-runner", - "version": "1.0.22", + "version": "1.0.23", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/runner/package.json b/runner/package.json index 470cb70ce6..c37e7636e8 100644 --- a/runner/package.json +++ b/runner/package.json @@ -1,6 +1,6 @@ { "name": "codeql-runner", - "version": "1.0.22", + "version": "1.0.23", "private": true, "description": "CodeQL runner", "scripts": { diff --git a/src/actions-util.test.ts b/src/actions-util.test.ts index 86e8715234..2eb2425dda 100644 --- a/src/actions-util.test.ts +++ b/src/actions-util.test.ts @@ -680,3 +680,13 @@ test("isAnalyzingDefaultBranch()", async (t) => { t.deepEqual(await actionsutil.isAnalyzingDefaultBranch(), false); }); }); + +test("sanitizeArifactName", (t) => { + t.deepEqual(actionsutil.sanitizeArifactName("hello-world_"), "hello-world_"); + t.deepEqual(actionsutil.sanitizeArifactName("hello`world`"), "helloworld"); + t.deepEqual(actionsutil.sanitizeArifactName("hello===123"), "hello123"); + t.deepEqual( + actionsutil.sanitizeArifactName("*m)a&n^y%i££n+v!a:l[i]d"), + "manyinvalid" + ); +}); diff --git a/src/actions-util.ts b/src/actions-util.ts index d723c7104b..cb09bb5a10 100644 --- a/src/actions-util.ts +++ b/src/actions-util.ts @@ -85,6 +85,7 @@ export const getCommitOid = async function (ref = "HEAD"): Promise { core.info( `Failed to call git to get current commit. Continuing with data from environment: ${e}` ); + core.info((e as Error).stack || "NO STACK"); return getRequiredEnvParam("GITHUB_SHA"); } }; @@ -709,3 +710,7 @@ export async function isAnalyzingDefaultBranch(): Promise { return currentRef === defaultBranch; } + +export function sanitizeArifactName(name: string): string { + return name.replace(/[^a-zA-Z0-9_\\-]+/g, ""); +} diff --git a/src/analyze-action.ts b/src/analyze-action.ts index 4c8428d9b4..034534af5e 100644 --- a/src/analyze-action.ts +++ b/src/analyze-action.ts @@ -237,8 +237,14 @@ async function run() { } async function uploadDebugArtifacts(toUpload: string[], rootDir: string) { + let suffix = ""; + const matrix = actionsUtil.getRequiredInput("matrix"); + if (matrix !== undefined && matrix !== "null") { + for (const entry of Object.entries(JSON.parse(matrix)).sort()) + suffix += `-${entry[1]}`; + } await artifact.create().uploadArtifact( - DEBUG_ARTIFACT_NAME, + actionsUtil.sanitizeArifactName(`${DEBUG_ARTIFACT_NAME}${suffix}`), toUpload.map((file) => path.normalize(file)), path.normalize(rootDir) ); diff --git a/src/defaults.json b/src/defaults.json index fd7047b2eb..a910534b1b 100644 --- a/src/defaults.json +++ b/src/defaults.json @@ -1,3 +1,3 @@ { - "bundleVersion": "codeql-bundle-20211025" + "bundleVersion": "codeql-bundle-20211115" } diff --git a/src/tracer-config.ts b/src/tracer-config.ts index dcbebfe496..1a3552e618 100644 --- a/src/tracer-config.ts +++ b/src/tracer-config.ts @@ -212,25 +212,25 @@ export async function getCombinedTracerConfig( ); } mainTracerConfig = concatTracerConfigs(tracedLanguageConfigs, config); - } - // Add a couple more variables - mainTracerConfig.env["ODASA_TRACER_CONFIGURATION"] = mainTracerConfig.spec; - const codeQLDir = path.dirname(codeql.getPath()); - if (process.platform === "darwin") { - mainTracerConfig.env["DYLD_INSERT_LIBRARIES"] = path.join( - codeQLDir, - "tools", - "osx64", - "libtrace.dylib" - ); - } else if (process.platform !== "win32") { - mainTracerConfig.env["LD_PRELOAD"] = path.join( - codeQLDir, - "tools", - "linux64", - "${LIB}trace.so" - ); + // Add a couple more variables + mainTracerConfig.env["ODASA_TRACER_CONFIGURATION"] = mainTracerConfig.spec; + const codeQLDir = path.dirname(codeql.getPath()); + if (process.platform === "darwin") { + mainTracerConfig.env["DYLD_INSERT_LIBRARIES"] = path.join( + codeQLDir, + "tools", + "osx64", + "libtrace.dylib" + ); + } else if (process.platform !== "win32") { + mainTracerConfig.env["LD_PRELOAD"] = path.join( + codeQLDir, + "tools", + "linux64", + "${LIB}trace.so" + ); + } } // On macos it's necessary to prefix the build command with the runner executable diff --git a/src/upload-lib.test.ts b/src/upload-lib.test.ts index 033d73897b..b6412ab0ea 100644 --- a/src/upload-lib.test.ts +++ b/src/upload-lib.test.ts @@ -175,3 +175,24 @@ test("populateRunAutomationDetails", (t) => { ); t.deepEqual(modifiedSarif, expectedSarif); }); + +test("validateUniqueCategory", (t) => { + t.notThrows(() => uploadLib.validateUniqueCategory(undefined)); + t.throws(() => uploadLib.validateUniqueCategory(undefined)); + + t.notThrows(() => uploadLib.validateUniqueCategory("abc")); + t.throws(() => uploadLib.validateUniqueCategory("abc")); + + t.notThrows(() => uploadLib.validateUniqueCategory("def")); + t.throws(() => uploadLib.validateUniqueCategory("def")); + + // Our category sanitization is not perfect. Here are some examples + // of where we see false clashes + t.notThrows(() => uploadLib.validateUniqueCategory("abc/def")); + t.throws(() => uploadLib.validateUniqueCategory("abc@def")); + t.throws(() => uploadLib.validateUniqueCategory("abc_def")); + t.throws(() => uploadLib.validateUniqueCategory("abc def")); + + // this one is fine + t.notThrows(() => uploadLib.validateUniqueCategory("abc_ def")); +}); diff --git a/src/upload-lib.ts b/src/upload-lib.ts index 2082dbdac6..66a5cef103 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -343,16 +343,7 @@ async function uploadFiles( logger.startGroup("Uploading results"); logger.info(`Processing sarif files: ${JSON.stringify(sarifFiles)}`); - if (util.isActions()) { - // This check only works on actions as env vars don't persist between calls to the runner - const sentinelEnvVar = "CODEQL_UPLOAD_SARIF"; - if (process.env[sentinelEnvVar]) { - throw new Error( - "Aborting upload: only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job" - ); - } - core.exportVariable(sentinelEnvVar, sentinelEnvVar); - } + validateUniqueCategory(category); // Validate that the files we were asked to upload are all valid SARIF files for (const file of sarifFiles) { @@ -409,3 +400,33 @@ async function uploadFiles( num_results_in_sarif: numResultInSarif, }; } + +export function validateUniqueCategory(category: string | undefined) { + if (util.isActions()) { + // This check only works on actions as env vars don't persist between calls to the runner + const sentinelEnvVar = `CODEQL_UPLOAD_SARIF${ + category ? `_${sanitize(category)}` : "" + }`; + if (process.env[sentinelEnvVar]) { + throw new Error( + "Aborting upload: only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job per category. " + + "Please specify a unique `category` to call this action multiple times. " + + `Category: ${category ? category : "(none)"}` + ); + } + core.exportVariable(sentinelEnvVar, sentinelEnvVar); + } +} + +/** + * Santizes a string to be used as an environment variable name. + * This will replace all non-alphanumeric characters with underscores. + * There could still be some false category clashes if two uploads + * occur that differ only in their non-alphanumeric characters. This is + * unlikely. + * + * @param str the initial value to sanitize + */ +function sanitize(str: string) { + return str.replace(/[^a-zA-Z0-9_]/g, "_"); +}