From 6514cbb6261d5c5e9276723d461e543c987d224a Mon Sep 17 00:00:00 2001 From: nickfyson Date: Wed, 3 Apr 2024 15:45:28 +0100 Subject: [PATCH 1/6] improve logging coverage when uploaing sarif files --- lib/fingerprints.js | 1 + lib/fingerprints.js.map | 2 +- lib/upload-lib.js | 19 +++++++++++++------ lib/upload-lib.js.map | 2 +- lib/upload-lib.test.js | 6 +++--- lib/upload-lib.test.js.map | 2 +- src/fingerprints.ts | 1 + src/upload-lib.test.ts | 3 +++ src/upload-lib.ts | 17 +++++++++++++---- 9 files changed, 37 insertions(+), 16 deletions(-) diff --git a/lib/fingerprints.js b/lib/fingerprints.js index 6bbdb45e74..ed6d02e9d7 100644 --- a/lib/fingerprints.js +++ b/lib/fingerprints.js @@ -238,6 +238,7 @@ exports.resolveUriToFile = resolveUriToFile; // Compute fingerprints for results in the given sarif file // and return an updated sarif file contents. async function addFingerprints(sarif, sourceRoot, logger) { + logger.info(`Adding fingerprints to SARIF file`); // Gather together results for the same file and construct // callbacks to accept hashes for that file and update the location const callbacksByFile = {}; diff --git a/lib/fingerprints.js.map b/lib/fingerprints.js.map index 423a41c840..b1b8187914 100644 --- a/lib/fingerprints.js.map +++ b/lib/fingerprints.js.map @@ -1 +1 @@ -{"version":3,"file":"fingerprints.js","sourceRoot":"","sources":["../src/fingerprints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AAExB,gDAAwB;AAKxB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,MAAM,GAAG,GAAG,KAAK,CAAC;AAClB,MAAM,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eAAe,CAChB,EAAE,CACJ,CAAC;gBACF,SAAS;YACX,CAAC;YAED,IAAI,eAAe,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,KAAK,SAAS,EAAE,CAAC;gBACvE,kEAAkE;gBAClE,SAAS;YACX,CAAC;YAED,MAAM,QAAQ,GAAG,gBAAgB,CAC/B,eAAe,CAAC,gBAAgB,CAAC,gBAAgB,EACjD,SAAS,EACT,UAAU,EACV,MAAM,CACP,CAAC;YACF,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,SAAS;YACX,CAAC;YACD,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC/B,eAAe,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;YACjC,CAAC;YACD,eAAe,CAAC,QAAQ,CAAC,CAAC,IAAI,CAC5B,sBAAsB,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,CAAC,CACxD,CAAC;QACJ,CAAC;IACH,CAAC;IAED,oCAAoC;IACpC,KAAK,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QACpE,yEAAyE;QACzE,MAAM,WAAW,GAAG,UAAU,UAAkB,EAAE,SAAiB;YACjE,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;gBACzC,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC;QACF,MAAM,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AA3DD,0CA2DC"} \ No newline at end of file +{"version":3,"file":"fingerprints.js","sourceRoot":"","sources":["../src/fingerprints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AAExB,gDAAwB;AAKxB,MAAM,GAAG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UAAU,EAAE,SAAS,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC;QACF,MAAM,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AA5DD,0CA4DC"} \ No newline at end of file diff --git a/lib/upload-lib.js b/lib/upload-lib.js index a1efe1e065..8041e3f3c5 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -51,7 +51,8 @@ const GENERIC_403_MSG = "The repo on which this action is running has not opted- const GENERIC_404_MSG = "The CodeQL code scanning feature is forbidden on this repository."; // Takes a list of paths to sarif files and combines them together, // returning the contents of the combined sarif file. -function combineSarifFiles(sarifFiles) { +function combineSarifFiles(sarifFiles, logger) { + logger.info(`Combining sarif files`); const combinedSarif = { version: null, runs: [], @@ -84,13 +85,14 @@ function areAllRunsProducedByCodeQL(sarifFiles) { // CodeQL. Otherwise, it will fall back to combining the files in the action. // Returns the contents of the combined sarif file. async function combineSarifFilesUsingCLI(sarifFiles, gitHubVersion, features, logger) { + logger.info(`Combining sarif files using CLI`); if (sarifFiles.length === 1) { return JSON.parse(fs.readFileSync(sarifFiles[0], "utf8")); } if (!areAllRunsProducedByCodeQL(sarifFiles)) { logger.debug("Not all SARIF files were produced by CodeQL. Merging files in the action."); // If not, use the naive method of combining the files. - return combineSarifFiles(sarifFiles); + return combineSarifFiles(sarifFiles, logger); } // Initialize CodeQL, either by using the config file from the 'init' step, // or by initializing it here. @@ -116,7 +118,7 @@ async function combineSarifFilesUsingCLI(sarifFiles, gitHubVersion, features, lo } if (!(await codeQL.supportsFeature(tools_features_1.ToolsFeature.SarifMergeRunsFromEqualCategory))) { logger.warning("The CodeQL CLI does not support merging SARIF files. Merging files in the action."); - return combineSarifFiles(sarifFiles); + return combineSarifFiles(sarifFiles, logger); } const baseTempDir = path.resolve(tempDir, "combined-sarif"); fs.mkdirSync(baseTempDir, { recursive: true }); @@ -255,6 +257,7 @@ function countResultsInSarif(sarif) { // Validates that the given file path refers to a valid SARIF file. // Throws an error if the file is invalid. function validateSarifFileSchema(sarifFilePath, logger) { + logger.info(`Validating ${sarifFilePath}`); let sarif; try { sarif = JSON.parse(fs.readFileSync(sarifFilePath, "utf8")); @@ -287,7 +290,8 @@ function validateSarifFileSchema(sarifFilePath, logger) { exports.validateSarifFileSchema = validateSarifFileSchema; // buildPayload constructs a map ready to be uploaded to the API from the given // parameters, respecting the current mode and target GitHub instance version. -function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, workflowRunID, workflowRunAttempt, checkoutURI, environment, toolNames, mergeBaseCommitOid) { +function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, workflowRunID, workflowRunAttempt, checkoutURI, environment, toolNames, mergeBaseCommitOid, logger) { + logger.info(`Combining sarif files using CLI`); const payloadObj = { commit_oid: commitOid, ref, @@ -337,15 +341,18 @@ async function uploadFiles(sarifFiles, repositoryNwo, commitOid, ref, analysisKe } let sarif = (await features.getValue(feature_flags_1.Feature.CliSarifMerge)) ? await combineSarifFilesUsingCLI(sarifFiles, gitHubVersion, features, logger) - : combineSarifFiles(sarifFiles); + : combineSarifFiles(sarifFiles, logger); sarif = await fingerprints.addFingerprints(sarif, sourceRoot, logger); sarif = populateRunAutomationDetails(sarif, category, analysisKey, environment); const toolNames = util.getToolNames(sarif); + logger.debug(`Validating unique category in sarif`); validateUniqueCategory(sarif); + logger.debug(`Stringifying sarif for upload`); const sarifPayload = JSON.stringify(sarif); + logger.debug(`Compressing sarif payload`); const zippedSarif = zlib_1.default.gzipSync(sarifPayload).toString("base64"); const checkoutURI = (0, file_url_1.default)(sourceRoot); - const payload = buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, workflowRunID, workflowRunAttempt, checkoutURI, environment, toolNames, await actionsUtil.determineMergeBaseCommitOid()); + const payload = buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, workflowRunID, workflowRunAttempt, checkoutURI, environment, toolNames, await actionsUtil.determineMergeBaseCommitOid(), logger); // Log some useful debug info about the info const rawUploadSizeBytes = sarifPayload.length; logger.debug(`Raw upload size: ${rawUploadSizeBytes} bytes`); diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index a105e14218..80d2347da2 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;AAEtC,wDAA+B;AAC/B,uDAAyC;AAEzC,4DAA8C;AAC9C,iDAAoE;AACpE,kDAAoC;AACpC,6CAAgD;AAChD,qCAA6C;AAC7C,iDAA2C;AAC3C,+CAAuC;AACvC,mDAAoD;AACpD,6DAA+C;AAC/C,iCAAoC;AAEpC,6CAAiE;AACjE,qDAAgD;AAChD,6CAA+B;AAC/B,iCAMgB;AAEhB,MAAM,eAAe,GACnB,oFAAoF,CAAC;AACvF,MAAM,eAAe,GACnB,mEAAmE,CAAC;AAEtE,mEAAmE;AACnE,qDAAqD;AACrD,SAAS,iBAAiB,CAAC,UAAoB;IAC7C,MAAM,aAAa,GAAc;QAC/B,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAE;KACT,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC5B,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CACtB,CAAC;QACf,sBAAsB;QACtB,IAAI,aAAa,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YACnC,aAAa,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QAC9C,CAAC;aAAM,IAAI,aAAa,CAAC,OAAO,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC;YACzD,MAAM,IAAI,uBAAuB,CAC/B,yCAAyC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ChC,MAAM,IAAI,uBAAuB,CAC/B,2HAA2H;gBACzH,sHAAsH;gBACtH,gFAAgF;gBAChF,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,YAAY,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,GAAG,CACpE,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IACtD,CAAC;AACH,CAAC;AAxBD,wDAwBC;AAED;;;;;;;;GAQG;AACH,SAAS,QAAQ,CAAC,GAAY;IAC5B,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,iBAAiB,EAAE,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF;AAJD,0DAIC"} \ No newline at end of file diff --git a/lib/upload-lib.test.js b/lib/upload-lib.test.js index a70574ff2a..da9ef8d7af 100644 --- a/lib/upload-lib.test.js +++ b/lib/upload-lib.test.js @@ -47,7 +47,7 @@ ava_1.default.beforeEach(() => { }); (0, ava_1.default)("validate correct payload used for push, PR merge commit, and PR head", async (t) => { process.env["GITHUB_EVENT_NAME"] = "push"; - const pushPayload = uploadLib.buildPayload("commit", "refs/heads/master", "key", undefined, "", 1234, 1, "/opt/src", undefined, ["CodeQL", "eslint"], "mergeBaseCommit"); + const pushPayload = uploadLib.buildPayload("commit", "refs/heads/master", "key", undefined, "", 1234, 1, "/opt/src", undefined, ["CodeQL", "eslint"], "mergeBaseCommit", (0, logging_1.getRunnerLogger)(true)); // Not triggered by a pull request t.falsy(pushPayload.base_ref); t.falsy(pushPayload.base_sha); @@ -55,11 +55,11 @@ ava_1.default.beforeEach(() => { process.env["GITHUB_SHA"] = "commit"; process.env["GITHUB_BASE_REF"] = "master"; process.env["GITHUB_EVENT_PATH"] = `${__dirname}/../src/testdata/pull_request.json`; - const prMergePayload = uploadLib.buildPayload("commit", "refs/pull/123/merge", "key", undefined, "", 1234, 1, "/opt/src", undefined, ["CodeQL", "eslint"], "mergeBaseCommit"); + const prMergePayload = uploadLib.buildPayload("commit", "refs/pull/123/merge", "key", undefined, "", 1234, 1, "/opt/src", undefined, ["CodeQL", "eslint"], "mergeBaseCommit", (0, logging_1.getRunnerLogger)(true)); // Uploads for a merge commit use the merge base t.deepEqual(prMergePayload.base_ref, "refs/heads/master"); t.deepEqual(prMergePayload.base_sha, "mergeBaseCommit"); - const prHeadPayload = uploadLib.buildPayload("headCommit", "refs/pull/123/head", "key", undefined, "", 1234, 1, "/opt/src", undefined, ["CodeQL", "eslint"], "mergeBaseCommit"); + const prHeadPayload = uploadLib.buildPayload("headCommit", "refs/pull/123/head", "key", undefined, "", 1234, 1, "/opt/src", undefined, ["CodeQL", "eslint"], "mergeBaseCommit", (0, logging_1.getRunnerLogger)(true)); // Uploads for the head use the PR base t.deepEqual(prHeadPayload.base_ref, "refs/heads/master"); t.deepEqual(prHeadPayload.base_sha, "f95f852bd8fca8fcc58a9a2d6c842781e32a215e"); diff --git a/lib/upload-lib.test.js.map b/lib/upload-lib.test.js.map index 49751dd68d..59dafff677 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;AACzB,2CAA6B;AAE7B,8CAAuB;AAEvB,uCAAoD;AACpD,mDAA6C;AAC7C,wDAA0C;AAC1C,iCAA2D;AAE3D,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,aAAI,CAAC,UAAU,CAAC,GAAG,EAAE;IACnB,IAAA,4BAAqB,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CAA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AAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAEzD,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACtC,CAAC,CAAC,SAAS,CACT,cAAc,CAAC,CAAC,CAAC,EACjB,oIAAoI,CACrI,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,SAAS,eAAe,CAAC,EAAW,EAAE,IAAa;IACjD,OAAO;QACL,IAAI,EAAE;YACJ;gBACE,iBAAiB,EAAE;oBACjB,EAAE;iBACH;gBACD,IAAI,EAAE;oBACJ,MAAM,EAAE;wBACN,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"upload-lib.test.js","sourceRoot":"","sources":["../src/upload-lib.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,8CAAuB;AAEvB,uCAAoD;AACpD,mDAA6C;AAC7C,wDAA0C;AAC1C,iCAA2D;AAE3D,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,aAAI,CAAC,UAAU,CAAC,GAAG,EAAE;IACnB,IAAA,4BAAqB,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,iCAAiC,EAAE,CAAC,CAAC,EAAE,EAAE;IAC5C,MAAM,SAAS,GAAG,GAAG,SAAS,oCAAoC,CAAC;IACnE,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CACf,SAAS,CAAC,uBAAuB,CAAC,SAAS,EAAE,IAAA,yBAAe,EAAC,IAAI,CAAC,CAAC,CACpE,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,mCAAmC,EAAE,CAAC,CAAC,EAAE,EAAE;IAC9C,MAAM,SAAS,GAAG,GAAG,SAAS,sCAAsC,CAAC;IACrE,CAAC,CAAC,MAAM,CAAC,G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,EAAE;iBACH;gBACD,IAAI,EAAE;oBACJ,MAAM,EAAE;wBACN,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/src/fingerprints.ts b/src/fingerprints.ts index 7b4421cbfe..372c9561b5 100644 --- a/src/fingerprints.ts +++ b/src/fingerprints.ts @@ -259,6 +259,7 @@ export async function addFingerprints( sourceRoot: string, logger: Logger, ): Promise { + logger.info(`Adding fingerprints to SARIF file`); // Gather together results for the same file and construct // callbacks to accept hashes for that file and update the location const callbacksByFile: { [filename: string]: hashCallback[] } = {}; diff --git a/src/upload-lib.test.ts b/src/upload-lib.test.ts index cb3e1bdfa3..722553cb30 100644 --- a/src/upload-lib.test.ts +++ b/src/upload-lib.test.ts @@ -42,6 +42,7 @@ test("validate correct payload used for push, PR merge commit, and PR head", asy undefined, ["CodeQL", "eslint"], "mergeBaseCommit", + getRunnerLogger(true), ); // Not triggered by a pull request t.falsy(pushPayload.base_ref); @@ -65,6 +66,7 @@ test("validate correct payload used for push, PR merge commit, and PR head", asy undefined, ["CodeQL", "eslint"], "mergeBaseCommit", + getRunnerLogger(true), ); // Uploads for a merge commit use the merge base t.deepEqual(prMergePayload.base_ref, "refs/heads/master"); @@ -82,6 +84,7 @@ test("validate correct payload used for push, PR merge commit, and PR head", asy undefined, ["CodeQL", "eslint"], "mergeBaseCommit", + getRunnerLogger(true), ); // Uploads for the head use the PR base t.deepEqual(prHeadPayload.base_ref, "refs/heads/master"); diff --git a/src/upload-lib.ts b/src/upload-lib.ts index 680a4cc54a..a36906c18a 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -36,7 +36,8 @@ const GENERIC_404_MSG = // Takes a list of paths to sarif files and combines them together, // returning the contents of the combined sarif file. -function combineSarifFiles(sarifFiles: string[]): SarifFile { +function combineSarifFiles(sarifFiles: string[], logger: Logger): SarifFile { + logger.info(`Combining sarif files`); const combinedSarif: SarifFile = { version: null, runs: [], @@ -87,6 +88,7 @@ async function combineSarifFilesUsingCLI( features: Features, logger: Logger, ): Promise { + logger.info(`Combining sarif files using CLI`); if (sarifFiles.length === 1) { return JSON.parse(fs.readFileSync(sarifFiles[0], "utf8")) as SarifFile; } @@ -97,7 +99,7 @@ async function combineSarifFilesUsingCLI( ); // If not, use the naive method of combining the files. - return combineSarifFiles(sarifFiles); + return combineSarifFiles(sarifFiles, logger); } // Initialize CodeQL, either by using the config file from the 'init' step, @@ -146,7 +148,7 @@ async function combineSarifFilesUsingCLI( "The CodeQL CLI does not support merging SARIF files. Merging files in the action.", ); - return combineSarifFiles(sarifFiles); + return combineSarifFiles(sarifFiles, logger); } const baseTempDir = path.resolve(tempDir, "combined-sarif"); @@ -356,6 +358,7 @@ function countResultsInSarif(sarif: string): number { // Validates that the given file path refers to a valid SARIF file. // Throws an error if the file is invalid. export function validateSarifFileSchema(sarifFilePath: string, logger: Logger) { + logger.info(`Validating ${sarifFilePath}`); let sarif; try { sarif = JSON.parse(fs.readFileSync(sarifFilePath, "utf8")) as SarifFile; @@ -415,7 +418,9 @@ export function buildPayload( environment: string | undefined, toolNames: string[], mergeBaseCommitOid: string | undefined, + logger: Logger, ) { + logger.info(`Combining sarif files using CLI`); const payloadObj = { commit_oid: commitOid, ref, @@ -497,7 +502,7 @@ async function uploadFiles( features, logger, ) - : combineSarifFiles(sarifFiles); + : combineSarifFiles(sarifFiles, logger); sarif = await fingerprints.addFingerprints(sarif, sourceRoot, logger); sarif = populateRunAutomationDetails( @@ -509,8 +514,11 @@ async function uploadFiles( const toolNames = util.getToolNames(sarif); + logger.debug(`Validating unique category in sarif`); validateUniqueCategory(sarif); + logger.debug(`Stringifying sarif for upload`); const sarifPayload = JSON.stringify(sarif); + logger.debug(`Compressing sarif payload`); const zippedSarif = zlib.gzipSync(sarifPayload).toString("base64"); const checkoutURI = fileUrl(sourceRoot); @@ -526,6 +534,7 @@ async function uploadFiles( environment, toolNames, await actionsUtil.determineMergeBaseCommitOid(), + logger, ); // Log some useful debug info about the info From 2cc8bbd0e0d40ad79a415789884bb51a1db7b806 Mon Sep 17 00:00:00 2001 From: Nick Fyson Date: Wed, 3 Apr 2024 17:07:14 +0100 Subject: [PATCH 2/6] Apply suggestions from code review Co-authored-by: Henry Mercer --- lib/fingerprints.js | 2 +- lib/fingerprints.js.map | 2 +- lib/upload-lib.js | 10 +++++----- lib/upload-lib.js.map | 2 +- src/fingerprints.ts | 2 +- src/upload-lib.ts | 10 +++++----- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/fingerprints.js b/lib/fingerprints.js index ed6d02e9d7..06dd51dfab 100644 --- a/lib/fingerprints.js +++ b/lib/fingerprints.js @@ -238,7 +238,7 @@ exports.resolveUriToFile = resolveUriToFile; // Compute fingerprints for results in the given sarif file // and return an updated sarif file contents. async function addFingerprints(sarif, sourceRoot, logger) { - logger.info(`Adding fingerprints to SARIF file`); + logger.info("Adding fingerprints to SARIF file. For more information, see https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#providing-data-to-track-code-scanning-alerts-across-runs"); // Gather together results for the same file and construct // callbacks to accept hashes for that file and update the location const callbacksByFile = {}; diff --git a/lib/fingerprints.js.map b/lib/fingerprints.js.map index b1b8187914..68308ee2d8 100644 --- a/lib/fingerprints.js.map +++ b/lib/fingerprints.js.map @@ -1 +1 @@ -{"version":3,"file":"fingerprints.js","sourceRoot":"","sources":["../src/fingerprints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AAExB,gDAAwB;AAKxB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,MAAM,EAAE,GAAG,IAAI,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,WAAW,GAAG,UAAU,UAAkB,EAAE,SAAiB;YACjE,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;gBACzC,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC;QACF,MAAM,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AA5DD,0CA4DC"} \ No newline at end of file diff --git a/lib/upload-lib.js b/lib/upload-lib.js index 8041e3f3c5..e589d16f7e 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -85,7 +85,7 @@ function areAllRunsProducedByCodeQL(sarifFiles) { // CodeQL. Otherwise, it will fall back to combining the files in the action. // Returns the contents of the combined sarif file. async function combineSarifFilesUsingCLI(sarifFiles, gitHubVersion, features, logger) { - logger.info(`Combining sarif files using CLI`); + logger.info("Combining SARIF files using the CodeQL CLI"); if (sarifFiles.length === 1) { return JSON.parse(fs.readFileSync(sarifFiles[0], "utf8")); } @@ -291,7 +291,7 @@ exports.validateSarifFileSchema = validateSarifFileSchema; // buildPayload constructs a map ready to be uploaded to the API from the given // parameters, respecting the current mode and target GitHub instance version. function buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, workflowRunID, workflowRunAttempt, checkoutURI, environment, toolNames, mergeBaseCommitOid, logger) { - logger.info(`Combining sarif files using CLI`); + logger.info(`Combining SARIF files using CLI`); const payloadObj = { commit_oid: commitOid, ref, @@ -345,11 +345,11 @@ async function uploadFiles(sarifFiles, repositoryNwo, commitOid, ref, analysisKe sarif = await fingerprints.addFingerprints(sarif, sourceRoot, logger); sarif = populateRunAutomationDetails(sarif, category, analysisKey, environment); const toolNames = util.getToolNames(sarif); - logger.debug(`Validating unique category in sarif`); + logger.debug(`Validating that each SARIF run has a unique category`); validateUniqueCategory(sarif); - logger.debug(`Stringifying sarif for upload`); + logger.debug(`Serializing SARIF for upload`); const sarifPayload = JSON.stringify(sarif); - logger.debug(`Compressing sarif payload`); + logger.debug(`Compressing serialized SARIF`); const zippedSarif = zlib_1.default.gzipSync(sarifPayload).toString("base64"); const checkoutURI = (0, file_url_1.default)(sourceRoot); const payload = buildPayload(commitOid, ref, analysisKey, analysisName, zippedSarif, workflowRunID, workflowRunAttempt, checkoutURI, environment, toolNames, await actionsUtil.determineMergeBaseCommitOid(), logger); diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index 80d2347da2..b84e8cd43b 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;AAEtC,wDAA+B;AAC/B,uDAAyC;AAEzC,4DAA8C;AAC9C,iDAAoE;AACpE,kDAAoC;AACpC,6CAAgD;AAChD,qCAA6C;AAC7C,iDAA2C;AAC3C,+CAAuC;AACvC,mDAAoD;AACpD,6DAA+C;AAC/C,iCAAoC;AAEpC,6CAAiE;AACjE,qDAAgD;AAChD,6CAA+B;AAC/B,iCAMgB;AAEhB,MAAM,eAAe,GACnB,oFAAoF,CAAC;AACvF,MAAM,eAAe,GACnB,mEAAmE,CAAC;AAEtE,mEAAmE;AACnE,qDAAqD;AACrD,SAAS,iBAAiB,CAAC,UAAoB,EAAE,MAAc;IAC7D,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACrC,MAAM,aAAa,GAAc;QAC/B,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAE;KACT,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC5B,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CACtB,C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O,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,iBAAiB,EAAE,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,MAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF;AAJD,0DAIC"} \ No newline at end of file +{"version":3,"file":"upload-lib.js","sourceRoot":"","sources":["../src/upload-lib.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,gDAAwB;AAExB,oDAAsC;AAEtC,wDAA+B;AAC/B,uDAAyC;AAEzC,4DAA8C;AAC9C,iDAAoE;AACpE,kDAAoC;AACpC,6CAAgD;AAChD,qCAA6C;AAC7C,iDAA2C;AAC3C,+CAAuC;AACvC,mDAAoD;AACpD,6DAA+C;AAC/C,iCAAoC;AAEpC,6CAAiE;AACjE,qDAAgD;AAChD,6CAA+B;AAC/B,iCAMgB;AAEhB,MAAM,eAAe,GACnB,oFAAoF,CAAC;AACvF,MAAM,eAAe,GACnB,mEAAmE,CAAC;AAEtE,mEAAmE;AACnE,qDAAqD;AACrD,SAAS,iBAAiB,CAAC,UAAoB,EAAE,MAAc;IAC7D,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACrC,MAAM,aAAa,GAAc;QAC/B,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAE;KACT,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC5B,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CACtB,CAAC;QACf,sBAAsB;QACtB,IAAI,aAAa,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YACnC,aAAa,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QAC9C,CAAC;aAAM,IAAI,aAAa,CAAC,OAAO,KAAK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jB,CAAC;CACF;AAJD,0DAIC"} \ No newline at end of file diff --git a/src/fingerprints.ts b/src/fingerprints.ts index 372c9561b5..32b322334c 100644 --- a/src/fingerprints.ts +++ b/src/fingerprints.ts @@ -259,7 +259,7 @@ export async function addFingerprints( sourceRoot: string, logger: Logger, ): Promise { - logger.info(`Adding fingerprints to SARIF file`); + logger.info("Adding fingerprints to SARIF file. For more information, see https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#providing-data-to-track-code-scanning-alerts-across-runs"); // Gather together results for the same file and construct // callbacks to accept hashes for that file and update the location const callbacksByFile: { [filename: string]: hashCallback[] } = {}; diff --git a/src/upload-lib.ts b/src/upload-lib.ts index a36906c18a..b42c798f30 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -88,7 +88,7 @@ async function combineSarifFilesUsingCLI( features: Features, logger: Logger, ): Promise { - logger.info(`Combining sarif files using CLI`); + logger.info("Combining SARIF files using the CodeQL CLI"); if (sarifFiles.length === 1) { return JSON.parse(fs.readFileSync(sarifFiles[0], "utf8")) as SarifFile; } @@ -420,7 +420,7 @@ export function buildPayload( mergeBaseCommitOid: string | undefined, logger: Logger, ) { - logger.info(`Combining sarif files using CLI`); + logger.info(`Combining SARIF files using CLI`); const payloadObj = { commit_oid: commitOid, ref, @@ -514,11 +514,11 @@ async function uploadFiles( const toolNames = util.getToolNames(sarif); - logger.debug(`Validating unique category in sarif`); + logger.debug(`Validating that each SARIF run has a unique category`); validateUniqueCategory(sarif); - logger.debug(`Stringifying sarif for upload`); + logger.debug(`Serializing SARIF for upload`); const sarifPayload = JSON.stringify(sarif); - logger.debug(`Compressing sarif payload`); + logger.debug(`Compressing serialized SARIF`); const zippedSarif = zlib.gzipSync(sarifPayload).toString("base64"); const checkoutURI = fileUrl(sourceRoot); From 978bdd643f1d27b7c1f08f876d6b84740f6c0746 Mon Sep 17 00:00:00 2001 From: nickfyson Date: Wed, 3 Apr 2024 20:43:26 +0100 Subject: [PATCH 3/6] fix test that runs flakily locally --- lib/actions-util.test.js | 4 +++- lib/actions-util.test.js.map | 2 +- src/actions-util.test.ts | 7 +++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/actions-util.test.js b/lib/actions-util.test.js index c465bb1547..61e778ffb8 100644 --- a/lib/actions-util.test.js +++ b/lib/actions-util.test.js @@ -227,7 +227,9 @@ const util_1 = require("./util"); const infoStub = sinon.stub(core, "info"); process.env["GITHUB_EVENT_NAME"] = "pull_request"; process.env["GITHUB_SHA"] = "100912429fab4cb230e66ffb11e738ac5194e73a"; - await actionsUtil.determineMergeBaseCommitOid(path.join(__dirname, "../..")); + await (0, util_1.withTmpDir)(async (tmpDir) => { + await actionsUtil.determineMergeBaseCommitOid(tmpDir); + }); t.deepEqual(1, infoStub.callCount); t.assert(infoStub.firstCall.args[0].startsWith("The checkout path provided to the action does not appear to be a git repository.")); infoStub.restore(); diff --git a/lib/actions-util.test.js.map b/lib/actions-util.test.js.map index 1dced1de0c..f82b188325 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,oDAAsC;AACtC,8CAAuB;AACvB,6CAA+B;AAE/B,4DAA8C;AAC9C,6CAAmD;AACnD,+CAAuC;AACvC,mDAA+D;AAC/D,iCAA2D;AAE3D,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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,CAAC,CAAC,CAAC,UAAU,CACnC,6CAA6C,CAC9C,CACF,CAAC;IAEF,QAAQ,CAAC,OAAO,EAAE,CAAC;AACrB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/actions-util.test.ts b/src/actions-util.test.ts index 00070c978c..be5a686314 100644 --- a/src/actions-util.test.ts +++ b/src/actions-util.test.ts @@ -286,14 +286,17 @@ test("determineMergeBaseCommitOid no error", async (t) => { process.env["GITHUB_EVENT_NAME"] = "pull_request"; process.env["GITHUB_SHA"] = "100912429fab4cb230e66ffb11e738ac5194e73a"; - await actionsUtil.determineMergeBaseCommitOid(path.join(__dirname, "../..")); + + await withTmpDir(async (tmpDir) => { + await actionsUtil.determineMergeBaseCommitOid(tmpDir); + }); + t.deepEqual(1, infoStub.callCount); t.assert( infoStub.firstCall.args[0].startsWith( "The checkout path provided to the action does not appear to be a git repository.", ), ); - infoStub.restore(); }); From d3257627d7ae12e68718893ec8535634a610a2fc Mon Sep 17 00:00:00 2001 From: nickfyson Date: Wed, 3 Apr 2024 20:50:03 +0100 Subject: [PATCH 4/6] fix linting error --- lib/fingerprints.js.map | 2 +- src/fingerprints.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/fingerprints.js.map b/lib/fingerprints.js.map index 68308ee2d8..3a5d35967e 100644 --- a/lib/fingerprints.js.map +++ b/lib/fingerprints.js.map @@ -1 +1 @@ -{"version":3,"file":"fingerprints.js","sourceRoot":"","sources":["../src/fingerprints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AAExB,gDAAwB;AAKxB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,MAAM,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EAAyE;QACzE,MAAM,WAAW,GAAG,UAAU,UAAkB,EAAE,SAAiB;YACjE,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;gBACzC,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC;QACF,MAAM,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AA9DD,0CA8DC"} \ No newline at end of file diff --git a/src/fingerprints.ts b/src/fingerprints.ts index 32b322334c..90d5d83501 100644 --- a/src/fingerprints.ts +++ b/src/fingerprints.ts @@ -259,7 +259,9 @@ export async function addFingerprints( sourceRoot: string, logger: Logger, ): Promise { - logger.info("Adding fingerprints to SARIF file. For more information, see https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#providing-data-to-track-code-scanning-alerts-across-runs"); + logger.info( + "Adding fingerprints to SARIF file. For more information, see https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#providing-data-to-track-code-scanning-alerts-across-runs", + ); // Gather together results for the same file and construct // callbacks to accept hashes for that file and update the location const callbacksByFile: { [filename: string]: hashCallback[] } = {}; From d3c32a84cb5364893701e6664feb83986c420052 Mon Sep 17 00:00:00 2001 From: nickfyson Date: Wed, 3 Apr 2024 21:04:50 +0100 Subject: [PATCH 5/6] fix test to respect updated logging behaviour --- lib/upload-lib.test.js | 4 ++-- src/upload-lib.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/upload-lib.test.js b/lib/upload-lib.test.js index da9ef8d7af..eba6516ccd 100644 --- a/lib/upload-lib.test.js +++ b/lib/upload-lib.test.js @@ -192,8 +192,8 @@ ava_1.default.beforeEach(() => { }; const sarifFile = `${__dirname}/../src/testdata/with-invalid-uri.sarif`; uploadLib.validateSarifFileSchema(sarifFile, mockLogger); - t.deepEqual(loggedMessages.length, 1); - t.deepEqual(loggedMessages[0], "Warning: 'not a valid URI' is not a valid URI in 'instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri'."); + t.deepEqual(loggedMessages.length, 2); + t.deepEqual(loggedMessages[1], "Warning: 'not a valid URI' is not a valid URI in 'instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri'."); }); function createMockSarif(id, tool) { return { diff --git a/src/upload-lib.test.ts b/src/upload-lib.test.ts index 722553cb30..460e9065d7 100644 --- a/src/upload-lib.test.ts +++ b/src/upload-lib.test.ts @@ -320,9 +320,9 @@ test("accept results with invalid artifactLocation.uri value", (t) => { const sarifFile = `${__dirname}/../src/testdata/with-invalid-uri.sarif`; uploadLib.validateSarifFileSchema(sarifFile, mockLogger); - t.deepEqual(loggedMessages.length, 1); + t.deepEqual(loggedMessages.length, 2); t.deepEqual( - loggedMessages[0], + loggedMessages[1], "Warning: 'not a valid URI' is not a valid URI in 'instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri'.", ); }); From c037115ddf761460364e7a6fddfe05adb9dfc4a6 Mon Sep 17 00:00:00 2001 From: nickfyson Date: Wed, 3 Apr 2024 21:19:06 +0100 Subject: [PATCH 6/6] clarify logging in response to pr review comments --- lib/upload-lib.js | 3 ++- lib/upload-lib.js.map | 2 +- src/upload-lib.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/upload-lib.js b/lib/upload-lib.js index e589d16f7e..05de357e4e 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -52,12 +52,13 @@ const GENERIC_404_MSG = "The CodeQL code scanning feature is forbidden on this r // Takes a list of paths to sarif files and combines them together, // returning the contents of the combined sarif file. function combineSarifFiles(sarifFiles, logger) { - logger.info(`Combining sarif files`); + logger.info(`Loading SARIF file(s)`); const combinedSarif = { version: null, runs: [], }; for (const sarifFile of sarifFiles) { + logger.debug(`Loading SARIF file: ${sarifFile}`); const sarifObject = JSON.parse(fs.readFileSync(sarifFile, "utf8")); // Check SARIF version if (combinedSarif.version === null) { diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index b84e8cd43b..e2d0ed1f9a 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;AAEtC,wDAA+B;AAC/B,uDAAyC;AAEzC,4DAA8C;AAC9C,iDAAoE;AACpE,kDAAoC;AACpC,6CAAgD;AAChD,qCAA6C;AAC7C,iDAA2C;AAC3C,+CAAuC;AACvC,mDAAoD;AACpD,6DAA+C;AAC/C,iCAAoC;AAEpC,6CAAiE;AACjE,qDAAgD;AAChD,6CAA+B;AAC/B,iCAMgB;AAEhB,MAAM,eAAe,GACnB,oFAAoF,CAAC;AACvF,MAAM,eAAe,GACnB,mEAAmE,CAAC;AAEtE,mEAAmE;AACnE,qDAAqD;AACrD,SAAS,iBAAiB,CAAC,UAAoB,EAAE,MAAc;IAC7D,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACrC,MAAM,aAAa,GAAc;QAC/B,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAE;KACT,CAAC;IAEF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC5B,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CACtB,CAAC;QACf,sBAAsB;QACtB,IAAI,aAAa,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YACnC,aAAa,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;QAC9C,CAAC;aAAM,IAAI,aAAa,CAAC,OAAO,KAAK,WAAW,CAAC,O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.ts @@ -37,13 +37,14 @@ const GENERIC_404_MSG = // Takes a list of paths to sarif files and combines them together, // returning the contents of the combined sarif file. function combineSarifFiles(sarifFiles: string[], logger: Logger): SarifFile { - logger.info(`Combining sarif files`); + logger.info(`Loading SARIF file(s)`); const combinedSarif: SarifFile = { version: null, runs: [], }; for (const sarifFile of sarifFiles) { + logger.debug(`Loading SARIF file: ${sarifFile}`); const sarifObject = JSON.parse( fs.readFileSync(sarifFile, "utf8"), ) as SarifFile;