From febbadf751ad5dff69b0db9d9f7ff0824e228e05 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Tue, 2 May 2023 13:46:24 -0700 Subject: [PATCH 01/35] Update the sarif schema file The version we were using is quite old. Copied the latest from https://github.com/oasis-tcs/sarif-spec/blob/123e95847b13fbdd4cbe2120fa5e33355d4a042b/Schemata/sarif-schema-2.1.0.json I do not think the sarif spec will be changing any more without an explicit version update, so this is fine for now. --- ....0_schema.json => sarif-schema-2.1.0.json} | 114 ++++++++++++------ src/upload-lib.ts | 3 +- 2 files changed, 78 insertions(+), 39 deletions(-) rename src/{sarif_v2.1.0_schema.json => sarif-schema-2.1.0.json} (96%) diff --git a/src/sarif_v2.1.0_schema.json b/src/sarif-schema-2.1.0.json similarity index 96% rename from src/sarif_v2.1.0_schema.json rename to src/sarif-schema-2.1.0.json index 41b12d4af7..5020cc1668 100644 --- a/src/sarif_v2.1.0_schema.json +++ b/src/sarif-schema-2.1.0.json @@ -1,5 +1,5 @@ { - "$schema": "http://json-schema.org/draft-07/schema#", + "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Static Analysis Results Format (SARIF) Version 2.1.0 JSON Schema", "$id": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", "description": "Static Analysis Results Format (SARIF) Version 2.1.0 JSON Schema: a standard format for the output of static analysis tools.", @@ -15,13 +15,15 @@ "version": { "description": "The SARIF format version of this log file.", - "enum": [ "2.1.0" ] + "enum": [ "2.1.0" ], + "type": "string" }, "runs": { "description": "The set of runs contained in this log file.", - "type": "array", + "type": [ "array", "null" ], "minItems": 0, + "uniqueItems": false, "items": { "$ref": "#/definitions/run" } @@ -180,7 +182,8 @@ "userSpecifiedConfiguration", "toolSpecifiedConfiguration", "debugOutputFile" - ] + ], + "type": "string" } }, @@ -241,6 +244,7 @@ "description": "An array of replacement objects, each of which represents the replacement of a single region in a single artifact specified by 'artifactLocation'.", "type": "array", "minItems": 1, + "uniqueItems": false, "items": { "$ref": "#/definitions/replacement" } @@ -382,6 +386,7 @@ "description": "An array of one or more unique threadFlow objects, each of which describes the progress of a program through a thread of execution.", "type": "array", "minItems": 1, + "uniqueItems": false, "items": { "$ref": "#/definitions/threadFlow" } @@ -556,6 +561,7 @@ "description": "An array of exception objects each of which is considered a cause of this exception.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/exception" @@ -583,17 +589,18 @@ "version": { "description": "The SARIF format version of this external properties object.", - "enum": [ "2.1.0" ] + "enum": [ "2.1.0" ], + "type": "string" }, "guid": { - "description": "A stable, unique identifer for this external properties object, in the form of a GUID.", + "description": "A stable, unique identifier for this external properties object, in the form of a GUID.", "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" }, "runGuid": { - "description": "A stable, unique identifer for the run associated with this external properties object, in the form of a GUID.", + "description": "A stable, unique identifier for the run associated with this external properties object, in the form of a GUID.", "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" }, @@ -633,6 +640,7 @@ "description": "Describes the invocation of the analysis tool that will be merged with a separate run.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/invocation" @@ -665,6 +673,7 @@ "description": "An array of result objects that will be merged with a separate run.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/result" @@ -724,6 +733,7 @@ "description": "Addresses that will be merged with a separate run.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/address" @@ -771,7 +781,7 @@ }, "guid": { - "description": "A stable, unique identifer for the external property file in the form of a GUID.", + "description": "A stable, unique identifier for the external property file in the form of a GUID.", "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" }, @@ -1079,6 +1089,7 @@ "description": "The sequences of edges traversed by this graph traversal.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/edgeTraversal" @@ -1111,6 +1122,7 @@ "description": "An array of strings, containing in order the command line arguments passed to the tool from the operating system.", "type": "array", "minItems": 0, + "uniqueItems": false, "items": { "type": "string" } @@ -1127,13 +1139,13 @@ }, "startTimeUtc": { - "description": "The Coordinated Universal Time (UTC) date and time at which the run started. See \"Date/time properties\" in the SARIF spec for the required format.", + "description": "The Coordinated Universal Time (UTC) date and time at which the invocation started. See \"Date/time properties\" in the SARIF spec for the required format.", "type": "string", "format": "date-time" }, "endTimeUtc": { - "description": "The Coordinated Universal Time (UTC) date and time at which the run ended. See \"Date/time properties\" in the SARIF spec for the required format.", + "description": "The Coordinated Universal Time (UTC) date and time at which the invocation ended. See \"Date/time properties\" in the SARIF spec for the required format.", "type": "string", "format": "date-time" }, @@ -1169,6 +1181,7 @@ "description": "A list of runtime conditions detected by the tool during the analysis.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/notification" @@ -1179,6 +1192,7 @@ "description": "A list of conditions detected by the tool that are relevant to the tool's configuration.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/notification" @@ -1211,27 +1225,27 @@ }, "machine": { - "description": "The machine that hosted the analysis tool run.", + "description": "The machine on which the invocation occurred.", "type": "string" }, "account": { - "description": "The account that ran the analysis tool.", + "description": "The account under which the invocation occurred.", "type": "string" }, "processId": { - "description": "The process id for the analysis tool run.", + "description": "The id of the process in which the invocation occurred.", "type": "integer" }, "executableLocation": { - "description": "An absolute URI specifying the location of the analysis tool's executable.", + "description": "An absolute URI specifying the location of the executable that was invoked.", "$ref": "#/definitions/artifactLocation" }, "workingDirectory": { - "description": "The working directory for the analysis tool run.", + "description": "The working directory for the invocation.", "$ref": "#/definitions/artifactLocation" }, @@ -1442,6 +1456,7 @@ "description": "An array of strings to substitute into the message string.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "type": "string" @@ -1551,7 +1566,8 @@ "level": { "description": "A value specifying the severity level of the notification.", "default": "warning", - "enum": [ "none", "note", "warning", "error" ] + "enum": [ "none", "note", "warning", "error" ], + "type": "string" }, "threadId": { @@ -1762,7 +1778,13 @@ "properties": { "description": "Key/value pairs that provide additional information about the region.", "$ref": "#/definitions/propertyBag" - } + }, + + "anyOf": [ + { "required": [ "startLine" ] }, + { "required": [ "charOffset" ] }, + { "required": [ "byteOffset" ] } + ] } }, @@ -1813,7 +1835,7 @@ }, "guid": { - "description": "A unique identifer for the reporting descriptor in the form of a GUID.", + "description": "A unique identifier for the reporting descriptor in the form of a GUID.", "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" }, @@ -1912,7 +1934,8 @@ "level": { "description": "Specifies the failure level for the report.", "default": "warning", - "enum": [ "none", "note", "warning", "error" ] + "enum": [ "none", "note", "warning", "error" ], + "type": "string" }, "rank": { @@ -2017,7 +2040,7 @@ "properties": { "ruleId": { - "description": "The stable, unique identifier of the rule, if any, to which this notification is relevant. This member can be used to retrieve rule metadata from the rules dictionary, if it exists.", + "description": "The stable, unique identifier of the rule, if any, to which this result is relevant.", "type": "string" }, @@ -2036,13 +2059,15 @@ "kind": { "description": "A value that categorizes results by evaluation state.", "default": "fail", - "enum": [ "notApplicable", "pass", "fail", "review", "open", "informational" ] + "enum": [ "notApplicable", "pass", "fail", "review", "open", "informational" ], + "type": "string" }, "level": { "description": "A value specifying the severity level of the result.", "default": "warning", - "enum": [ "none", "note", "warning", "error" ] + "enum": [ "none", "note", "warning", "error" ], + "type": "string" }, "message": { @@ -2059,6 +2084,7 @@ "description": "The set of locations where the result was detected. Specify only one location unless the problem indicated by the result can only be corrected by making a change at every specified location.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/location" @@ -2066,7 +2092,7 @@ }, "guid": { - "description": "A stable, unique identifer for the result in the form of a GUID.", + "description": "A stable, unique identifier for the result in the form of a GUID.", "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" }, @@ -2114,6 +2140,7 @@ "description": "An array of 'codeFlow' objects relevant to the result.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/codeFlow" @@ -2170,7 +2197,8 @@ "unchanged", "updated", "absent" - ] + ], + "type": "string" }, "rank": { @@ -2324,6 +2352,7 @@ "description": "Describes the invocation of the analysis tool.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/invocation" @@ -2339,8 +2368,9 @@ "description": "The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase culture code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646).", "type": "string", "default": "en-US", - "pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$" + "pattern": "^(?i)[a-zA]{2}(-[a-z]{2})?$" }, + "versionControlProvenance": { "description": "Specifies the revision in version control of the artifacts that were scanned.", "type": "array", @@ -2396,6 +2426,7 @@ "description": "The set of results contained in an SARIF log. The results array can be omitted when a run is solely exporting rules metadata. It must be present (but may be empty) if a log file represents an actual scan.", "type": "array", "minItems": 0, + "uniqueItems": false, "items": { "$ref": "#/definitions/result" } @@ -2457,7 +2488,8 @@ "columnKind": { "description": "Specifies the unit in which the tool measures columns.", - "enum": [ "utf16CodeUnits", "unicodeCodePoints" ] + "enum": [ "utf16CodeUnits", "unicodeCodePoints" ], + "type": "string" }, "externalPropertyFileReferences": { @@ -2491,6 +2523,7 @@ "description": "Addresses associated with this run instance, if any.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "$ref": "#/definitions/address" @@ -2572,7 +2605,7 @@ }, "guid": { - "description": "A stable, unique identifer for this object's containing run object in the form of a GUID.", + "description": "A stable, unique identifier for this object's containing run object in the form of a GUID.", "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" }, @@ -2623,6 +2656,7 @@ "description": "An array of stack frames that represents a sequence of calls, rendered in reverse chronological order, that comprise the call stack.", "type": "array", "minItems": 0, + "uniqueItems": false, "items": { "$ref": "#/definitions/stackFrame" } @@ -2661,6 +2695,7 @@ "description": "The parameters of the call that is executing.", "type": "array", "minItems": 0, + "uniqueItems": false, "default": [], "items": { "type": "string", @@ -2682,7 +2717,7 @@ "properties": { "guid": { - "description": "A stable, unique identifer for the suprression in the form of a GUID.", + "description": "A stable, unique identifier for the suprression in the form of a GUID.", "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" }, @@ -2692,16 +2727,18 @@ "enum": [ "inSource", "external" - ] + ], + "type": "string" }, - "state": { - "description": "A string that indicates the state of the suppression.", + "status": { + "description": "A string that indicates the review status of the suppression.", "enum": [ "accepted", "underReview", "rejected" - ] + ], + "type": "string" }, "justification": { @@ -2759,6 +2796,7 @@ "description": "A temporally ordered array of 'threadFlowLocation' objects, each of which describes a location visited by the tool while producing the result.", "type": "array", "minItems": 1, + "uniqueItems": false, "items": { "$ref": "#/definitions/threadFlowLocation" } @@ -2853,7 +2891,8 @@ "importance": { "description": "Specifies the importance of this location in understanding the code flow in which it occurs. The order from most to least important is \"essential\", \"important\", \"unimportant\". Default: \"important\".", "enum": [ "important", "essential", "unimportant" ], - "default": "important" + "default": "important", + "type": "string" }, "webRequest": { @@ -2911,7 +2950,7 @@ "properties": { "guid": { - "description": "A unique identifer for the tool component in the form of a GUID.", + "description": "A unique identifier for the tool component in the form of a GUID.", "type": "string", "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$" }, @@ -3039,7 +3078,7 @@ "description": "The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase language code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646).", "type": "string", "default": "en-US", - "pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$" + "pattern": "^(?i)[a-zA]{2}(-[a-z]{2})?$" }, "contents": { @@ -3051,7 +3090,8 @@ "enum": [ "localizedData", "nonLocalizedData" - ] + ], + "type": "string" } }, @@ -3346,4 +3386,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/upload-lib.ts b/src/upload-lib.ts index fe9652ab0a..41d48aeae6 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -225,8 +225,7 @@ export function countResultsInSarif(sarif: string): number { // Throws an error if the file is invalid. export function validateSarifFileSchema(sarifFilePath: string, logger: Logger) { const sarif = JSON.parse(fs.readFileSync(sarifFilePath, "utf8")); - const schema = - require("../src/sarif_v2.1.0_schema.json") as jsonschema.Schema; + const schema = require("../src/sarif-schema-2.1.0.json") as jsonschema.Schema; const result = new jsonschema.Validator().validate(sarif, schema); if (!result.valid) { From ece3cbc8ecd30dcce0d5b61f9d941dacec839521 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Tue, 2 May 2023 13:50:38 -0700 Subject: [PATCH 02/35] Update changelog --- CHANGELOG.md | 1 + lib/upload-lib.js | 2 +- lib/upload-lib.js.map | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d91b5c513d..f8eb386807 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [UNRELEASED] - You can now configure CodeQL within your code scanning workflow by passing a `config` input to the `init` Action. See [Using a custom configuration file](https://aka.ms/code-scanning-docs/config-file) for more information about configuring code scanning. [#1590](https://github.com/github/codeql-action/pull/1590) +- Updated the SARIF JSON schema file to the latest from [oasis-tcs/sarif-spec](https://github.com/oasis-tcs/sarif-spec/blob/123e95847b13fbdd4cbe2120fa5e33355d4a042b/Schemata/sarif-schema-2.1.0.json). [#1668](https://github.com/github/codeql-action/pull/1668) ## 2.3.2 - 27 Apr 2023 diff --git a/lib/upload-lib.js b/lib/upload-lib.js index 1195d8f41d..45c7c2d6c2 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -179,7 +179,7 @@ exports.countResultsInSarif = countResultsInSarif; // Throws an error if the file is invalid. function validateSarifFileSchema(sarifFilePath, logger) { const sarif = JSON.parse(fs.readFileSync(sarifFilePath, "utf8")); - const schema = require("../src/sarif_v2.1.0_schema.json"); + const schema = require("../src/sarif-schema-2.1.0.json"); const result = new jsonschema.Validator().validate(sarif, schema); if (!result.valid) { // Output the more verbose error messages in groups as these may be very large. diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index 002cf1a25f..71e4b93071 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,qCAA8B;AAC9B,gDAAwB;AAExB,oDAAsC;AAEtC,wDAA+B;AAC/B,uDAAyC;AAEzC,4DAA8C;AAC9C,kDAAoC;AACpC,6DAA+C;AAE/C,6CAAiE;AACjE,6DAAkE;AAClE,6CAA+B;AAC/B,iCAAqE;AACrE,qDAAuC;AAEvC,mEAAmE;AACnE,qDAAqD;AACrD,SAAgB,iBAAiB,C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E,iEAAiE;YACjE,qEAAqE;YACrE,MAAM,UAAU,GAAkB,EAAE,CAAC;YACrC,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,EAAE,EAAE;gBACtC,IACE,MAAM,CAAC,MAAM,KAAK,iCAAiC;oBACnD,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC;wBACtC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAC3C;oBACA,MAAM,IAAI,CAAC,CAAC;oBACZ,SAAS;iBACV;gBACD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACzB;YACD,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;SAC/C;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACnB;KACF;IACD,IAAI,MAAM,GAAG,CAAC,EAAE;QACd,MAAM,CAAC,IAAI,CACT,UAAU,MAAM,kDAAkD,CACnE,CAAC;KACH;IACD,OAAO,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC;AArCD,kDAqCC"} \ 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,qCAA8B;AAC9B,gDAAwB;AAExB,oDAAsC;AAEtC,wDAA+B;AAC/B,uDAAyC;AAEzC,4DAA8C;AAC9C,kDAAoC;AACpC,6DAA+C;AAE/C,6CAAiE;AACjE,6DAAkE;AAClE,6CAA+B;AAC/B,iCAAqE;AACrE,qDAAuC;AAEvC,mEAAmE;AACnE,qDAAqD;AACrD,SAAgB,iBAAiB,CAAC,UAAoB;IACpD,MAAM,aAAa,GAAc;QAC/B,OAAO,EAAE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AAE,CAAC;YACrC,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,EAAE,EAAE;gBACtC,IACE,MAAM,CAAC,MAAM,KAAK,iCAAiC;oBACnD,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC;wBACtC,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAC3C;oBACA,MAAM,IAAI,CAAC,CAAC;oBACZ,SAAS;iBACV;gBACD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACzB;YACD,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC;SAC/C;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACnB;KACF;IACD,IAAI,MAAM,GAAG,CAAC,EAAE;QACd,MAAM,CAAC,IAAI,CACT,UAAU,MAAM,kDAAkD,CACnE,CAAC;KACH;IACD,OAAO,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC;AArCD,kDAqCC"} \ No newline at end of file From ef88842204f7ce687d8f87224b0a08f9d063ea34 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Tue, 2 May 2023 14:26:17 -0700 Subject: [PATCH 03/35] Update jsonschema version Fixes bug in `uniqueItems` property. --- node_modules/.package-lock.json | 5 +- node_modules/jsonschema/README.md | 230 ++++++++++++++--- node_modules/jsonschema/lib/attribute.js | 300 +++++++++++++++++------ node_modules/jsonschema/lib/helpers.js | 137 ++++++++--- node_modules/jsonschema/lib/index.d.ts | 21 +- node_modules/jsonschema/lib/index.js | 1 + node_modules/jsonschema/lib/scan.js | 9 +- node_modules/jsonschema/lib/validator.js | 52 ++-- node_modules/jsonschema/package.json | 12 +- package-lock.json | 7 +- package.json | 2 +- 11 files changed, 599 insertions(+), 177 deletions(-) diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 03dc19a536..746303f8d9 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -4146,8 +4146,9 @@ } }, "node_modules/jsonschema": { - "version": "1.2.6", - "integrity": "sha512-SqhURKZG07JyKKeo/ir24QnS4/BV7a6gQy93bUSe4lUdNp0QNpIz2c9elWJQ9dpc5cQYY6cvCzgRwy0MQCLyqA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.1.tgz", + "integrity": "sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ==", "engines": { "node": "*" } diff --git a/node_modules/jsonschema/README.md b/node_modules/jsonschema/README.md index 3de393d638..64abb0a00c 100644 --- a/node_modules/jsonschema/README.md +++ b/node_modules/jsonschema/README.md @@ -1,18 +1,21 @@ [![Build Status](https://secure.travis-ci.org/tdegrunt/jsonschema.svg)](http://travis-ci.org/tdegrunt/jsonschema) # jsonschema -[JSON schema](http://json-schema.org/) validator, which is designed to be fast and simple to use. -The latest IETF published draft is v6, this library is mostly v4 compatible. + +[JSON schema](http://json-schema.org/) validator, which is designed to be fast and simple to use. JSON Schema versions through draft-07 are fully supported. ## Contributing & bugs + Please fork the repository, make the changes in your fork and include tests. Once you're done making changes, send in a pull request. ### Bug reports + Please include a test which shows why the code fails. ## Usage ### Simple + Simple object validation using JSON schemas. ```javascript @@ -78,6 +81,7 @@ v.addSchema(addressSchema, '/SimpleAddress'); console.log(v.validate(p, schema)); ``` ### Example for Array schema + ```json var arraySchema = { "type": "array", @@ -95,21 +99,42 @@ For a comprehensive, annotated example illustrating all possible validation opti ## Features ### Definitions + All schema definitions are supported, $schema is ignored. ### Types + All types are supported +### Handling `undefined` + +`undefined` is not a value known to JSON, and by default, the validator treats it as if it is not invalid. i.e., it will return valid. + +```javascript +var res = validate(undefined, {type: 'string'}); +res.valid // true +``` + +This behavior may be changed with the "required" option: + +```javascript +var res = validate(undefined, {type: 'string'}, {required: true}); +res.valid // false +``` + ### Formats + #### Disabling the format keyword. You may disable format validation by providing `disableFormat: true` to the validator options. #### String Formats + All formats are supported, phone numbers are expected to follow the [E.123](http://en.wikipedia.org/wiki/E.123) standard. #### Custom Formats + You may add your own custom format functions. Format functions accept the input being validated and return a boolean value. If the returned value is `true`, then validation succeeds. If the returned value is `false`, then validation fails. @@ -133,27 +158,86 @@ validator.validate('foo', {type: 'string', format: 'myFormat'}).valid; // false ``` ### Results -The first error found will be thrown as an `Error` object if `options.throwError` is `true`. Otherwise all results will be appended to the `result.errors` array which also contains the success flag `result.valid`. -When `oneOf` or `anyOf` validations fail, errors that caused any of the sub-schemas referenced therein to fail are not reported, unless `options.nestedErrors` is truthy. This option may be useful when troubleshooting validation errors in complex schemas. +By default, results will be returned in a `ValidatorResult` object with the following properties: + +* `instance`: any. +* `schema`: Schema. +* `errors`: ValidationError[]. +* `valid`: boolean. + +Each item in `errors` is a `ValidationError` with the following properties: + +* path: array. An array of property keys or array offsets, indicating where inside objects or arrays the instance was found. +* property: string. Describes the property path. Starts with `instance`, and is delimited with a dot (`.`). +* message: string. A human-readable message for debugging use. Provided in English and subject to change. +* schema: object. The schema containing the keyword that failed +* instance: any. The instance that failed +* name: string. The keyword within the schema that failed. +* argument: any. Provides information about the keyword that failed. + +The validator can be configured to throw in the event of a validation error: + +* If the `throwFirst` option is set, the validator will terminate validation at the first encountered error and throw a `ValidatorResultError` object. + +* If the `throwAll` option is set, the validator will throw a `ValidatorResultError` object after the entire instance has been validated. + +* If the `throwError` option is set, it will throw at the first encountered validation error (like `throwFirst`), but the `ValidationError` object itself will be thrown. Note that, despite the name, this does not inherit from Error like `ValidatorResultError` does. + +The `ValidatorResultError` object has the same properties as `ValidatorResult` and additionally inherits from Error. + +#### "nestedErrors" option + +When `oneOf` or `anyOf` validations fail, errors that caused any of the sub-schemas referenced therein to fail are normally suppressed, because it is not necessary to fix all of them. And in the case of `oneOf`, it would itself be an error to fix all of the listed errors. + +This behavior may be configured with `options.nestedErrors`. If truthy, it will emit all the errors from the subschemas. This option may be useful when troubleshooting validation errors in complex schemas: + +```javascript +var schema = { + oneOf: [ + { type: 'string', minLength: 32, maxLength: 32 }, + { type: 'string', maxLength: 16 }, + { type: 'number' }, + ] +}; +var validator = new Validator(); +var result = validator.validate('This string is 28 chars long', schema, {nestedErrors: true}); + +// result.toString() reads out: +// 0: instance does not meet minimum length of 32 +// 1: instance does not meet maximum length of 16 +// 2: instance is not of a type(s) number +// 3: instance is not exactly one from [subschema 0],[subschema 1],[subschema 2] +``` + +#### Localizing Error Messages + +To provide localized, human-readable errors, use the `name` string as a translation key. Feel free to open an issue for support relating to localizing error messages. For example: + +``` +var localized = result.errors.map(function(err){ + return localeService.translate(err.name); +}); +``` + +### Custom keywords -### Custom properties -Specify your own JSON Schema properties with the validator.attributes property: +Specify your own JSON Schema keywords with the validator.attributes property: ```javascript validator.attributes.contains = function validateContains(instance, schema, options, ctx) { - if(typeof instance!='string') return; - if(typeof schema.contains!='string') throw new jsonschema.SchemaError('"contains" expects a string', schema); + if(typeof instance !== 'string') return; + if(typeof schema.contains !== 'string') throw new jsonschema.SchemaError('"contains" expects a string', schema); if(instance.indexOf(schema.contains)<0){ return 'does not contain the string ' + JSON.stringify(schema.contains); } } -var result = validator.validate("i am an instance", { type:"string", contains: "i am" }); +var result = validator.validate("I am an instance", { type:"string", contains: "I am" }); // result.valid === true; ``` The instance passes validation if the function returns nothing. A single validation error is produced -if the fuction returns a string. Any number of errors (maybe none at all) may be returned by passing a +if the function returns a string. Any number of errors (maybe none at all) may be returned by passing a `ValidatorResult` object, which may be used like so: ```javascript @@ -165,6 +249,7 @@ if the fuction returns a string. Any number of errors (maybe none at all) may be ``` ### Dereferencing schemas + Sometimes you may want to download schemas from remote sources, like a database, or over HTTP. When importing a schema, unknown references are inserted into the `validator.unresolvedRefs` Array. Asynchronously shift elements off this array and import them: @@ -184,44 +269,119 @@ function importNextSchema(){ importNextSchema(); ``` -### Pre-Property Validation Hook -If some processing of properties is required prior to validation a function may be passed via the options parameter of the validate function. For example, say you needed to perform type coercion for some properties: +### Default base URI + +Schemas should typically have an `id` with an absolute, full URI. However if the schema you are using contains only relative URI references, the `base` option will be used to resolve these. + +This following example would throw a `SchemaError` if the `base` option were unset: + +```javascript +var result = validate(["Name"], { + id: "/schema.json", + type: "array", + items: { $ref: "http://example.com/schema.json#/definitions/item" }, + definitions: { + item: { type: "string" }, + }, +}, { base: 'http://example.com/' }); +``` + +### Rewrite Hook + +The `rewrite` option lets you change the value of an instance after it has successfully been validated. This will mutate the `instance` passed to the validate function. This can be useful for unmarshalling data and parsing it into native instances, such as changing a string to a `Date` instance. + +The `rewrite` option accepts a function with the following arguments: + +* instance: any +* schema: object +* options: object +* ctx: object +* return value: any new value for the instance + +The value may be removed by returning `undefined`. +If you don't want to change the value, call `return instance`. + +Here is an example that can convert a property expecting a date into a Date instance: ```javascript -const coercionHook = function (instance, property, schema, options, ctx) { - var value = instance[property]; +const schema = { + properties: { + date: {id: 'http://example.com/date', type: 'string'}, + }, +}; - // Skip nulls and undefineds - if (value === null || typeof value == 'undefined') { - return; +const value = { + date: '2020-09-30T23:39:27.060Z', +}; + +function unmarshall(instance, schema){ + if(schema.id === 'http://example.com/date'){ + return new Date(instance); } + return instance; +} - // If the schema declares a type and the property fails type validation. - if (schema.type && this.attributes.type.call(this, instance, schema, options, ctx.makeChild(schema, property))) { - var types = Array.isArray(schema.type) ? schema.type : [schema.type]; - var coerced = undefined; - - // Go through the declared types until we find something that we can - // coerce the value into. - for (var i = 0; typeof coerced == 'undefined' && i < types.length; i++) { - // If we support coercion to this type - if (lib.coercions[types[i]]) { - // ...attempt it. - coerced = lib.coercions[types[i]](value); - } +const v = new Validator(); +const res = v.validate(value, schema, {rewrite: unmarshall}); + +assert(res.instance.date instanceof Date); +``` + + +### Pre-Property Validation Hook + +If some processing of properties is required prior to validation a function may be passed via the options parameter of the validate function. For example, say you needed to perform type coercion for some properties: + +```javascript +// See examples/coercion.js +function preValidateProperty(object, key, schema, options, ctx) { + var value = object[key]; + if (typeof value === 'undefined') return; + + // Test if the schema declares a type, but the type keyword fails validation + if (schema.type && validator.attributes.type.call(validator, value, schema, options, ctx.makeChild(schema, key))) { + // If the type is "number" but the instance is not a number, cast it + if(schema.type==='number' && typeof value!=='number'){ + object[key] = parseFloat(value); + return; } - // If we got a successful coercion we modify the property of the instance. - if (typeof coerced != 'undefined') { - instance[property] = coerced; + // If the type is "string" but the instance is not a string, cast it + if(schema.type==='string' && typeof value!=='string'){ + object[key] = String(value).toString(); + return; } } -}.bind(validator) +}; // And now, to actually perform validation with the coercion hook! -v.validate(instance, schema, { preValidateProperty: coercionHook }); +v.validate(instance, schema, { preValidateProperty }); +``` + +### Skip validation of certain keywords + +Use the "skipAttributes" option to skip validation of certain keywords. Provide an array of keywords to ignore. + +For skipping the "format" keyword, see the disableFormat option. + +### Fail on unknown keywords + +By default, JSON Schema is supposed to ignore unknown schema keywords. + +You can change this behavior to require that all keywords used in a schema have a defined behavior, by using setting the "allowUnknownAttributes" option to false. + +This example will throw a `SchemaError`: + +```javascript +var schema = { + type: "string", + format: "email", + example: "foo", +}; +var result = validate("Name", schema, { allowUnknownAttributes: false }); ``` ## Tests + Uses [JSON Schema Test Suite](https://github.com/json-schema/JSON-Schema-Test-Suite) as well as our own tests. You'll need to update and init the git submodules: diff --git a/node_modules/jsonschema/lib/attribute.js b/node_modules/jsonschema/lib/attribute.js index 1a2577ee0f..67f526aa1a 100644 --- a/node_modules/jsonschema/lib/attribute.js +++ b/node_modules/jsonschema/lib/attribute.js @@ -16,13 +16,13 @@ attribute.ignoreProperties = { 'description': true, 'title': true, // arguments to other properties - 'exclusiveMinimum': true, - 'exclusiveMaximum': true, 'additionalItems': true, + 'then': true, + 'else': true, // special-handled properties '$schema': true, '$ref': true, - 'extends': true + 'extends': true, }; /** @@ -47,7 +47,9 @@ validators.type = function validateType (instance, schema, options, ctx) { var types = Array.isArray(schema.type) ? schema.type : [schema.type]; if (!types.some(this.testType.bind(this, instance, schema, options, ctx))) { var list = types.map(function (v) { - return v.id && ('<' + v.id + '>') || (v+''); + if(!v) return; + var id = v.$id || v.id; + return id ? ('<' + id + '>') : (v+''); }); result.addError({ name: 'type', @@ -60,9 +62,12 @@ validators.type = function validateType (instance, schema, options, ctx) { function testSchemaNoThrow(instance, options, ctx, callback, schema){ var throwError = options.throwError; + var throwAll = options.throwAll; options.throwError = false; + options.throwAll = false; var res = this.validateSchema(instance, schema, options, ctx); options.throwError = throwError; + options.throwAll = throwAll; if (!res.valid && callback instanceof Function) { callback(res); @@ -91,9 +96,11 @@ validators.anyOf = function validateAnyOf (instance, schema, options, ctx) { if (!schema.anyOf.some( testSchemaNoThrow.bind( this, instance, options, ctx, function(res){inner.importErrors(res);} - ))) { + ))) { var list = schema.anyOf.map(function (v, i) { - return (v.id && ('<' + v.id + '>')) || (v.title && JSON.stringify(v.title)) || (v['$ref'] && ('<' + v['$ref'] + '>')) || '[subschema '+i+']'; + var id = v.$id || v.id; + if(id) return '<' + id + '>'; + return(v.title && JSON.stringify(v.title)) || (v['$ref'] && ('<' + v['$ref'] + '>')) || '[subschema '+i+']'; }); if (options.nestedErrors) { result.importErrors(inner); @@ -128,7 +135,8 @@ validators.allOf = function validateAllOf (instance, schema, options, ctx) { schema.allOf.forEach(function(v, i){ var valid = self.validateSchema(instance, v, options, ctx); if(!valid.valid){ - var msg = (v.id && ('<' + v.id + '>')) || (v.title && JSON.stringify(v.title)) || (v['$ref'] && ('<' + v['$ref'] + '>')) || '[subschema '+i+']'; + var id = v.$id || v.id; + var msg = id || (v.title && JSON.stringify(v.title)) || (v['$ref'] && ('<' + v['$ref'] + '>')) || '[subschema '+i+']'; result.addError({ name: 'allOf', argument: { id: msg, length: valid.errors.length, valid: valid }, @@ -161,9 +169,10 @@ validators.oneOf = function validateOneOf (instance, schema, options, ctx) { var count = schema.oneOf.filter( testSchemaNoThrow.bind( this, instance, options, ctx, function(res) {inner.importErrors(res);} - ) ).length; + ) ).length; var list = schema.oneOf.map(function (v, i) { - return (v.id && ('<' + v.id + '>')) || (v.title && JSON.stringify(v.title)) || (v['$ref'] && ('<' + v['$ref'] + '>')) || '[subschema '+i+']'; + var id = v.$id || v.id; + return id || (v.title && JSON.stringify(v.title)) || (v['$ref'] && ('<' + v['$ref'] + '>')) || '[subschema '+i+']'; }); if (count!==1) { if (options.nestedErrors) { @@ -178,6 +187,70 @@ validators.oneOf = function validateOneOf (instance, schema, options, ctx) { return result; }; +/** + * Validates "then" or "else" depending on the result of validating "if" + * @param instance + * @param schema + * @param options + * @param ctx + * @return {String|null} + */ +validators.if = function validateIf (instance, schema, options, ctx) { + // Ignore undefined instances + if (instance === undefined) return null; + if (!helpers.isSchema(schema.if)) throw new Error('Expected "if" keyword to be a schema'); + var ifValid = testSchemaNoThrow.call(this, instance, options, ctx, null, schema.if); + var result = new ValidatorResult(instance, schema, options, ctx); + var res; + if(ifValid){ + if (schema.then === undefined) return; + if (!helpers.isSchema(schema.then)) throw new Error('Expected "then" keyword to be a schema'); + res = this.validateSchema(instance, schema.then, options, ctx.makeChild(schema.then)); + result.importErrors(res); + }else{ + if (schema.else === undefined) return; + if (!helpers.isSchema(schema.else)) throw new Error('Expected "else" keyword to be a schema'); + res = this.validateSchema(instance, schema.else, options, ctx.makeChild(schema.else)); + result.importErrors(res); + } + return result; +}; + +function getEnumerableProperty(object, key){ + // Determine if `key` shows up in `for(var key in object)` + // First test Object.hasOwnProperty.call as an optimization: that guarantees it does + if(Object.hasOwnProperty.call(object, key)) return object[key]; + // Test `key in object` as an optimization; false means it won't + if(!(key in object)) return; + while( (object = Object.getPrototypeOf(object)) ){ + if(Object.propertyIsEnumerable.call(object, key)) return object[key]; + } +} + +/** + * Validates propertyNames + * @param instance + * @param schema + * @param options + * @param ctx + * @return {String|null|ValidatorResult} + */ +validators.propertyNames = function validatePropertyNames (instance, schema, options, ctx) { + if(!this.types.object(instance)) return; + var result = new ValidatorResult(instance, schema, options, ctx); + var subschema = schema.propertyNames!==undefined ? schema.propertyNames : {}; + if(!helpers.isSchema(subschema)) throw new SchemaError('Expected "propertyNames" to be a schema (object or boolean)'); + + for (var property in instance) { + if(getEnumerableProperty(instance, property) !== undefined){ + var res = this.validateSchema(property, subschema, options, ctx.makeChild(subschema)); + result.importErrors(res); + } + } + + return result; +}; + /** * Validates properties * @param instance @@ -191,12 +264,17 @@ validators.properties = function validateProperties (instance, schema, options, var result = new ValidatorResult(instance, schema, options, ctx); var properties = schema.properties || {}; for (var property in properties) { + var subschema = properties[property]; + if(subschema===undefined){ + continue; + }else if(subschema===null){ + throw new SchemaError('Unexpected null, expected schema in "properties"'); + } if (typeof options.preValidateProperty == 'function') { - options.preValidateProperty(instance, property, properties[property], options, ctx); + options.preValidateProperty(instance, property, subschema, options, ctx); } - - var prop = Object.hasOwnProperty.call(instance, property) ? instance[property] : undefined; - var res = this.validateSchema(prop, properties[property], options, ctx.makeChild(properties[property], property)); + var prop = getEnumerableProperty(instance, property); + var res = this.validateSchema(prop, subschema, options, ctx.makeChild(subschema, property)); if(res.instance !== result.instance[property]) result.instance[property] = res.instance; result.importErrors(res); } @@ -206,7 +284,7 @@ validators.properties = function validateProperties (instance, schema, options, /** * Test a specific property within in instance against the additionalProperties schema attribute * This ignores properties with definitions in the properties schema attribute, but no other attributes. - * If too many more types of property-existance tests pop up they may need their own class of tests (like `type` has) + * If too many more types of property-existence tests pop up they may need their own class of tests (like `type` has) * @private * @return {boolean} */ @@ -219,7 +297,7 @@ function testAdditionalProperty (instance, schema, options, ctx, property, resul result.addError({ name: 'additionalProperties', argument: property, - message: "additionalProperty " + JSON.stringify(property) + " exists in instance when not allowed", + message: "is not allowed to have the additional property " + JSON.stringify(property), }); } else { var additionalProperties = schema.additionalProperties || {}; @@ -250,17 +328,29 @@ validators.patternProperties = function validatePatternProperties (instance, sch for (var property in instance) { var test = true; for (var pattern in patternProperties) { - var expr = new RegExp(pattern); - if (!expr.test(property)) { + var subschema = patternProperties[pattern]; + if(subschema===undefined){ + continue; + }else if(subschema===null){ + throw new SchemaError('Unexpected null, expected schema in "patternProperties"'); + } + try { + var regexp = new RegExp(pattern, 'u'); + } catch(_e) { + // In the event the stricter handling causes an error, fall back on the forgiving handling + // DEPRECATED + regexp = new RegExp(pattern); + } + if (!regexp.test(property)) { continue; } test = false; if (typeof options.preValidateProperty == 'function') { - options.preValidateProperty(instance, property, patternProperties[pattern], options, ctx); + options.preValidateProperty(instance, property, subschema, options, ctx); } - var res = this.validateSchema(instance[property], patternProperties[pattern], options, ctx.makeChild(patternProperties[pattern], property)); + var res = this.validateSchema(instance[property], subschema, options, ctx.makeChild(subschema, property)); if(res.instance !== result.instance[property]) result.instance[property] = res.instance; result.importErrors(res); } @@ -308,7 +398,7 @@ validators.minProperties = function validateMinProperties (instance, schema, opt name: 'minProperties', argument: schema.minProperties, message: "does not meet minimum property length of " + schema.minProperties, - }) + }); } return result; }; @@ -344,10 +434,14 @@ validators.maxProperties = function validateMaxProperties (instance, schema, opt validators.items = function validateItems (instance, schema, options, ctx) { var self = this; if (!this.types.array(instance)) return; - if (!schema.items) return; + if (schema.items===undefined) return; var result = new ValidatorResult(instance, schema, options, ctx); instance.every(function (value, i) { - var items = Array.isArray(schema.items) ? (schema.items[i] || schema.additionalItems) : schema.items; + if(Array.isArray(schema.items)){ + var items = schema.items[i]===undefined ? schema.additionalItems : schema.items[i]; + }else{ + var items = schema.items; + } if (items === undefined) { return true; } @@ -366,6 +460,34 @@ validators.items = function validateItems (instance, schema, options, ctx) { return result; }; +/** + * Validates the "contains" keyword + * @param instance + * @param schema + * @param options + * @param ctx + * @return {String|null|ValidatorResult} + */ +validators.contains = function validateContains (instance, schema, options, ctx) { + var self = this; + if (!this.types.array(instance)) return; + if (schema.contains===undefined) return; + if (!helpers.isSchema(schema.contains)) throw new Error('Expected "contains" keyword to be a schema'); + var result = new ValidatorResult(instance, schema, options, ctx); + var count = instance.some(function (value, i) { + var res = self.validateSchema(value, schema.contains, options, ctx.makeChild(schema.contains, i)); + return res.errors.length===0; + }); + if(count===false){ + result.addError({ + name: 'contains', + argument: schema.contains, + message: "must contain an item matching given schema", + }); + } + return result; +}; + /** * Validates minimum and exclusiveMinimum when the type of the instance value is a number. * @param instance @@ -375,18 +497,22 @@ validators.items = function validateItems (instance, schema, options, ctx) { validators.minimum = function validateMinimum (instance, schema, options, ctx) { if (!this.types.number(instance)) return; var result = new ValidatorResult(instance, schema, options, ctx); - var valid = true; if (schema.exclusiveMinimum && schema.exclusiveMinimum === true) { - valid = instance > schema.minimum; + if(!(instance > schema.minimum)){ + result.addError({ + name: 'minimum', + argument: schema.minimum, + message: "must be greater than " + schema.minimum, + }); + } } else { - valid = instance >= schema.minimum; - } - if (!valid) { - result.addError({ - name: 'minimum', - argument: schema.minimum, - message: "must have a minimum value of " + schema.minimum, - }); + if(!(instance >= schema.minimum)){ + result.addError({ + name: 'minimum', + argument: schema.minimum, + message: "must be greater than or equal to " + schema.minimum, + }); + } } return result; }; @@ -400,17 +526,65 @@ validators.minimum = function validateMinimum (instance, schema, options, ctx) { validators.maximum = function validateMaximum (instance, schema, options, ctx) { if (!this.types.number(instance)) return; var result = new ValidatorResult(instance, schema, options, ctx); - var valid; if (schema.exclusiveMaximum && schema.exclusiveMaximum === true) { - valid = instance < schema.maximum; + if(!(instance < schema.maximum)){ + result.addError({ + name: 'maximum', + argument: schema.maximum, + message: "must be less than " + schema.maximum, + }); + } } else { - valid = instance <= schema.maximum; + if(!(instance <= schema.maximum)){ + result.addError({ + name: 'maximum', + argument: schema.maximum, + message: "must be less than or equal to " + schema.maximum, + }); + } } + return result; +}; + +/** + * Validates the number form of exclusiveMinimum when the type of the instance value is a number. + * @param instance + * @param schema + * @return {String|null} + */ +validators.exclusiveMinimum = function validateExclusiveMinimum (instance, schema, options, ctx) { + // Support the boolean form of exclusiveMinimum, which is handled by the "minimum" keyword. + if(typeof schema.exclusiveMinimum === 'boolean') return; + if (!this.types.number(instance)) return; + var result = new ValidatorResult(instance, schema, options, ctx); + var valid = instance > schema.exclusiveMinimum; + if (!valid) { + result.addError({ + name: 'exclusiveMinimum', + argument: schema.exclusiveMinimum, + message: "must be strictly greater than " + schema.exclusiveMinimum, + }); + } + return result; +}; + +/** + * Validates the number form of exclusiveMaximum when the type of the instance value is a number. + * @param instance + * @param schema + * @return {String|null} + */ +validators.exclusiveMaximum = function validateExclusiveMaximum (instance, schema, options, ctx) { + // Support the boolean form of exclusiveMaximum, which is handled by the "maximum" keyword. + if(typeof schema.exclusiveMaximum === 'boolean') return; + if (!this.types.number(instance)) return; + var result = new ValidatorResult(instance, schema, options, ctx); + var valid = instance < schema.exclusiveMaximum; if (!valid) { result.addError({ - name: 'maximum', - argument: schema.maximum, - message: "must have a maximum value of " + schema.maximum, + name: 'exclusiveMaximum', + argument: schema.exclusiveMaximum, + message: "must be strictly less than " + schema.exclusiveMaximum, }); } return result; @@ -444,7 +618,7 @@ var validateMultipleOfOrDivisbleBy = function validateMultipleOfOrDivisbleBy (in result.addError({ name: validationType, argument: validationArgument, - message: errorMessage + JSON.stringify(validationArgument) + message: errorMessage + JSON.stringify(validationArgument), }); } @@ -458,7 +632,7 @@ var validateMultipleOfOrDivisbleBy = function validateMultipleOfOrDivisbleBy (in * @return {String|null} */ validators.multipleOf = function validateMultipleOf (instance, schema, options, ctx) { - return validateMultipleOfOrDivisbleBy.call(this, instance, schema, options, ctx, "multipleOf", "is not a multiple of (divisible by) "); + return validateMultipleOfOrDivisbleBy.call(this, instance, schema, options, ctx, "multipleOf", "is not a multiple of (divisible by) "); }; /** @@ -480,14 +654,14 @@ validators.divisibleBy = function validateDivisibleBy (instance, schema, options validators.required = function validateRequired (instance, schema, options, ctx) { var result = new ValidatorResult(instance, schema, options, ctx); if (instance === undefined && schema.required === true) { - // A boolean form is implemented for reverse-compatability with schemas written against older drafts + // A boolean form is implemented for reverse-compatibility with schemas written against older drafts result.addError({ name: 'required', - message: "is required" + message: "is required", }); } else if (this.types.object(instance) && Array.isArray(schema.required)) { schema.required.forEach(function(n){ - if(instance[n]===undefined){ + if(getEnumerableProperty(instance, n)===undefined){ result.addError({ name: 'required', argument: n, @@ -508,7 +682,15 @@ validators.required = function validateRequired (instance, schema, options, ctx) validators.pattern = function validatePattern (instance, schema, options, ctx) { if (!this.types.string(instance)) return; var result = new ValidatorResult(instance, schema, options, ctx); - if (!instance.match(schema.pattern)) { + var pattern = schema.pattern; + try { + var regexp = new RegExp(pattern, 'u'); + } catch(_e) { + // In the event the stricter handling causes an error, fall back on the forgiving handling + // DEPRECATED + regexp = new RegExp(pattern); + } + if (!instance.match(regexp)) { result.addError({ name: 'pattern', argument: schema.pattern, @@ -633,32 +815,6 @@ validators.maxItems = function validateMaxItems (instance, schema, options, ctx) return result; }; -/** - * Validates that every item in an instance array is unique, when instance is an array - * @param instance - * @param schema - * @param options - * @param ctx - * @return {String|null|ValidatorResult} - */ -validators.uniqueItems = function validateUniqueItems (instance, schema, options, ctx) { - if (!this.types.array(instance)) return; - var result = new ValidatorResult(instance, schema, options, ctx); - function testArrays (v, i, a) { - for (var j = i + 1; j < a.length; j++) if (helpers.deepCompareStrict(v, a[j])) { - return false; - } - return true; - } - if (!instance.every(testArrays)) { - result.addError({ - name: 'uniqueItems', - message: "contains duplicate item", - }); - } - return result; -}; - /** * Deep compares arrays for duplicates * @param v @@ -683,6 +839,7 @@ function testArrays (v, i, a) { * @return {String|null} */ validators.uniqueItems = function validateUniqueItems (instance, schema, options, ctx) { + if (schema.uniqueItems!==true) return; if (!this.types.array(instance)) return; var result = new ValidatorResult(instance, schema, options, ctx); if (!instance.every(testArrays)) { @@ -806,7 +963,8 @@ validators.not = validators.disallow = function validateNot (instance, schema, o if(!Array.isArray(notTypes)) notTypes=[notTypes]; notTypes.forEach(function (type) { if (self.testType(instance, schema, options, ctx, type)) { - var schemaId = type && type.id && ('<' + type.id + '>') || type; + var id = type && (type.$id || type.id); + var schemaId = id || type; result.addError({ name: 'not', argument: schemaId, diff --git a/node_modules/jsonschema/lib/helpers.js b/node_modules/jsonschema/lib/helpers.js index 93ad0e0417..14dc0ebbb2 100644 --- a/node_modules/jsonschema/lib/helpers.js +++ b/node_modules/jsonschema/lib/helpers.js @@ -2,21 +2,23 @@ var uri = require('url'); -var ValidationError = exports.ValidationError = function ValidationError (message, instance, schema, propertyPath, name, argument) { - if (propertyPath) { - this.property = propertyPath; +var ValidationError = exports.ValidationError = function ValidationError (message, instance, schema, path, name, argument) { + if(Array.isArray(path)){ + this.path = path; + this.property = path.reduce(function(sum, item){ + return sum + makeSuffix(item); + }, 'instance'); + }else if(path !== undefined){ + this.property = path; } if (message) { this.message = message; } if (schema) { - if (schema.id) { - this.schema = schema.id; - } else { - this.schema = schema; - } + var id = schema.$id || schema.id; + this.schema = id || schema; } - if (instance) { + if (instance !== undefined) { this.instance = instance; } this.name = name; @@ -31,27 +33,33 @@ ValidationError.prototype.toString = function toString() { var ValidatorResult = exports.ValidatorResult = function ValidatorResult(instance, schema, options, ctx) { this.instance = instance; this.schema = schema; + this.options = options; + this.path = ctx.path; this.propertyPath = ctx.propertyPath; this.errors = []; this.throwError = options && options.throwError; + this.throwFirst = options && options.throwFirst; + this.throwAll = options && options.throwAll; this.disableFormat = options && options.disableFormat === true; }; ValidatorResult.prototype.addError = function addError(detail) { var err; if (typeof detail == 'string') { - err = new ValidationError(detail, this.instance, this.schema, this.propertyPath); + err = new ValidationError(detail, this.instance, this.schema, this.path); } else { if (!detail) throw new Error('Missing error detail'); if (!detail.message) throw new Error('Missing error message'); if (!detail.name) throw new Error('Missing validator type'); - err = new ValidationError(detail.message, this.instance, this.schema, this.propertyPath, detail.name, detail.argument); + err = new ValidationError(detail.message, this.instance, this.schema, this.path, detail.name, detail.argument); } - if (this.throwError) { + this.errors.push(err); + if (this.throwFirst) { + throw new ValidatorResultError(this); + }else if(this.throwError){ throw err; } - this.errors.push(err); return err; }; @@ -59,7 +67,7 @@ ValidatorResult.prototype.importErrors = function importErrors(res) { if (typeof res == 'string' || (res && res.validatorType)) { this.addError(res); } else if (res && res.errors) { - Array.prototype.push.apply(this.errors, res.errors); + this.errors = this.errors.concat(res.errors); } }; @@ -74,6 +82,20 @@ Object.defineProperty(ValidatorResult.prototype, "valid", { get: function() { return !this.errors.length; } }); +module.exports.ValidatorResultError = ValidatorResultError; +function ValidatorResultError(result) { + if(Error.captureStackTrace){ + Error.captureStackTrace(this, ValidatorResultError); + } + this.instance = result.instance; + this.schema = result.schema; + this.options = result.options; + this.errors = result.errors; +} +ValidatorResultError.prototype = new Error(); +ValidatorResultError.prototype.constructor = ValidatorResultError; +ValidatorResultError.prototype.name = "Validation Error"; + /** * Describes a problem with a Schema which prevents validation of an instance * @name SchemaError @@ -86,14 +108,22 @@ var SchemaError = exports.SchemaError = function SchemaError (msg, schema) { Error.captureStackTrace(this, SchemaError); }; SchemaError.prototype = Object.create(Error.prototype, - { constructor: {value: SchemaError, enumerable: false} - , name: {value: 'SchemaError', enumerable: false} + { + constructor: {value: SchemaError, enumerable: false}, + name: {value: 'SchemaError', enumerable: false}, }); -var SchemaContext = exports.SchemaContext = function SchemaContext (schema, options, propertyPath, base, schemas) { +var SchemaContext = exports.SchemaContext = function SchemaContext (schema, options, path, base, schemas) { this.schema = schema; this.options = options; - this.propertyPath = propertyPath; + if(Array.isArray(path)){ + this.path = path; + this.propertyPath = path.reduce(function(sum, item){ + return sum + makeSuffix(item); + }, 'instance'); + }else{ + this.propertyPath = path; + } this.base = base; this.schemas = schemas; }; @@ -103,36 +133,60 @@ SchemaContext.prototype.resolve = function resolve (target) { }; SchemaContext.prototype.makeChild = function makeChild(schema, propertyName){ - var propertyPath = (propertyName===undefined) ? this.propertyPath : this.propertyPath+makeSuffix(propertyName); - var base = uri.resolve(this.base, schema.id||''); - var ctx = new SchemaContext(schema, this.options, propertyPath, base, Object.create(this.schemas)); - if(schema.id && !ctx.schemas[base]){ + var path = (propertyName===undefined) ? this.path : this.path.concat([propertyName]); + var id = schema.$id || schema.id; + var base = uri.resolve(this.base, id||''); + var ctx = new SchemaContext(schema, this.options, path, base, Object.create(this.schemas)); + if(id && !ctx.schemas[base]){ ctx.schemas[base] = schema; } return ctx; -} +}; var FORMAT_REGEXPS = exports.FORMAT_REGEXPS = { + // 7.3.1. Dates, Times, and Duration 'date-time': /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/, 'date': /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/, 'time': /^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/, + 'duration': /P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i, + // 7.3.2. Email Addresses + // TODO: fix the email production 'email': /^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/, + 'idn-email': /^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u, + + // 7.3.3. Hostnames + + // 7.3.4. IP Addresses 'ip-address': /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, + // FIXME whitespace is invalid 'ipv6': /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/, - 'uri': /^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/, - 'color': /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/, + // 7.3.5. Resource Identifiers + // TODO: A more accurate regular expression for "uri" goes: + // [A-Za-z][+\-.0-9A-Za-z]*:((/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?)?#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])|/?%[0-9A-Fa-f]{2}|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*(#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|/(/((%[0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?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u, + 'uuid': /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i, + + // 7.3.6. uri-template + 'uri-template': /(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu, + + // 7.3.7. JSON Pointers + 'json-pointer': /^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu, + 'relative-json-pointer': /^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu, // hostname regex from: http://stackoverflow.com/a/1420225/5628 'hostname': /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/, 'host-name': /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/, - 'alpha': /^[a-zA-Z]+$/, - 'alphanumeric': /^[a-zA-Z0-9]+$/, 'utc-millisec': function (input) { return (typeof input === 'string') && parseFloat(input) === parseInt(input, 10) && !isNaN(input); }, + + // 7.3.8. regex 'regex': function (input) { var result = true; try { @@ -142,8 +196,15 @@ var FORMAT_REGEXPS = exports.FORMAT_REGEXPS = { } return result; }, - 'style': /\s*(.+?):\s*([^;]+);?/, - 'phone': /^\+(?:[0-9] ?){6,14}[0-9]$/ + + // Other definitions + // "style" was removed from JSON Schema in draft-4 and is deprecated + 'style': /[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/, + // "color" was removed from JSON Schema in draft-4 and is deprecated + 'color': /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/, + 'phone': /^\+(?:[0-9] ?){6,14}[0-9]$/, + 'alpha': /^[a-zA-Z]+$/, + 'alphanumeric': /^[a-zA-Z0-9]+$/, }; FORMAT_REGEXPS.regexp = FORMAT_REGEXPS.regex; @@ -212,10 +273,10 @@ exports.deepCompareStrict = function deepCompareStrict (a, b) { function deepMerger (target, dst, e, i) { if (typeof e === 'object') { - dst[i] = deepMerge(target[i], e) + dst[i] = deepMerge(target[i], e); } else { if (target.indexOf(e) === -1) { - dst.push(e) + dst.push(e); } } } @@ -232,7 +293,7 @@ function copyistWithDeepMerge (target, src, dst, key) { if (!target[key]) { dst[key] = src[key]; } else { - dst[key] = deepMerge(target[key], src[key]) + dst[key] = deepMerge(target[key], src[key]); } } } @@ -253,7 +314,7 @@ function deepMerge (target, src) { } return dst; -}; +} module.exports.deepMerge = deepMerge; @@ -284,9 +345,9 @@ function pathEncoder (v) { * @return {String} */ exports.encodePath = function encodePointer(a){ - // ~ must be encoded explicitly because hacks - // the slash is encoded by encodeURIComponent - return a.map(pathEncoder).join(''); + // ~ must be encoded explicitly because hacks + // the slash is encoded by encodeURIComponent + return a.map(pathEncoder).join(''); }; @@ -323,3 +384,7 @@ exports.getDecimalPlaces = function getDecimalPlaces(number) { return decimalPlaces; }; +exports.isSchema = function isSchema(val){ + return (typeof val === 'object' && val) || (typeof val === 'boolean'); +}; + diff --git a/node_modules/jsonschema/lib/index.d.ts b/node_modules/jsonschema/lib/index.d.ts index 056d2cbec8..ba47f9e54d 100644 --- a/node_modules/jsonschema/lib/index.d.ts +++ b/node_modules/jsonschema/lib/index.d.ts @@ -29,6 +29,7 @@ export declare class ValidatorResult { export declare class ValidationError { constructor(message?: string, instance?: any, schema?: Schema, propertyPath?: any, name?: string, argument?: any); + path: (string|number)[]; property: string; message: string; schema: string|Schema; @@ -48,6 +49,7 @@ export declare class SchemaError extends Error{ export declare function validate(instance: any, schema: any, options?: Options): ValidatorResult export interface Schema { + $id?: string id?: string $schema?: string $ref?: string @@ -55,9 +57,9 @@ export interface Schema { description?: string multipleOf?: number maximum?: number - exclusiveMaximum?: boolean + exclusiveMaximum?: number | boolean minimum?: number - exclusiveMinimum?: boolean + exclusiveMinimum?: number | boolean maxLength?: number minLength?: number pattern?: string | RegExp @@ -82,6 +84,7 @@ export interface Schema { dependencies?: { [name: string]: Schema | string[] } + const?: any 'enum'?: any[] type?: string | string[] format?: string @@ -89,27 +92,39 @@ export interface Schema { anyOf?: Schema[] oneOf?: Schema[] not?: Schema + if?: Schema + then?: Schema + else?: Schema } export interface Options { skipAttributes?: string[]; allowUnknownAttributes?: boolean; + preValidateProperty?: PreValidatePropertyFunction; rewrite?: RewriteFunction; - propertyName?: string; base?: string; throwError?: boolean; + required?: boolean; + throwFirst?: boolean; + throwAll?: boolean; + nestedErrors?: boolean; } export interface RewriteFunction { (instance: any, schema: Schema, options: Options, ctx: SchemaContext): any; } +export interface PreValidatePropertyFunction { + (instance: any, key: string, schema: Schema, options: Options, ctx: SchemaContext): any; +} + export interface SchemaContext { schema: Schema; options: Options; propertyPath: string; base: string; schemas: {[base: string]: Schema}; + makeChild: (schema: Schema, key: string) => SchemaContext; } export interface CustomFormat { diff --git a/node_modules/jsonschema/lib/index.js b/node_modules/jsonschema/lib/index.js index c68bb2c492..98c57453ca 100644 --- a/node_modules/jsonschema/lib/index.js +++ b/node_modules/jsonschema/lib/index.js @@ -3,6 +3,7 @@ var Validator = module.exports.Validator = require('./validator'); module.exports.ValidatorResult = require('./helpers').ValidatorResult; +module.exports.ValidatorResultError = require('./helpers').ValidatorResultError; module.exports.ValidationError = require('./helpers').ValidationError; module.exports.SchemaError = require('./helpers').SchemaError; module.exports.SchemaScanResult = require('./scan').SchemaScanResult; diff --git a/node_modules/jsonschema/lib/scan.js b/node_modules/jsonschema/lib/scan.js index d05307d041..26f6b336dc 100644 --- a/node_modules/jsonschema/lib/scan.js +++ b/node_modules/jsonschema/lib/scan.js @@ -1,3 +1,4 @@ +"use strict"; var urilib = require('url'); var helpers = require('./helpers'); @@ -23,13 +24,14 @@ module.exports.scan = function scan(base, schema){ ref[resolvedUri] = ref[resolvedUri] ? ref[resolvedUri]+1 : 0; return; } - var ourBase = schema.id ? urilib.resolve(baseuri, schema.id) : baseuri; + var id = schema.$id || schema.id; + var ourBase = id ? urilib.resolve(baseuri, id) : baseuri; if (ourBase) { // If there's no fragment, append an empty one if(ourBase.indexOf('#')<0) ourBase += '#'; if(found[ourBase]){ if(!helpers.deepCompareStrict(found[ourBase], schema)){ - throw new Error('Schema <'+schema+'> already exists with different definition'); + throw new Error('Schema <'+ourBase+'> already exists with different definition'); } return found[ourBase]; } @@ -68,7 +70,6 @@ module.exports.scan = function scan(base, schema){ var found = {}; var ref = {}; - var schemaUri = base; scanSchema(base, schema); return new SchemaScanResult(found, ref); -} +}; diff --git a/node_modules/jsonschema/lib/validator.js b/node_modules/jsonschema/lib/validator.js index 43dd43ae0c..cce16946ef 100644 --- a/node_modules/jsonschema/lib/validator.js +++ b/node_modules/jsonschema/lib/validator.js @@ -6,6 +6,7 @@ var attribute = require('./attribute'); var helpers = require('./helpers'); var scanSchema = require('./scan').scan; var ValidatorResult = helpers.ValidatorResult; +var ValidatorResultError = helpers.ValidatorResultError; var SchemaError = helpers.SchemaError; var SchemaContext = helpers.SchemaContext; //var anonymousBase = 'vnd.jsonschema:///'; @@ -49,13 +50,15 @@ Validator.prototype.addSchema = function addSchema (schema, base) { return null; } var scan = scanSchema(base||anonymousBase, schema); - var ourUri = base || schema.id; + var ourUri = base || schema.$id || schema.id; for(var uri in scan.id){ this.schemas[uri] = scan.id[uri]; } for(var uri in scan.ref){ + // If this schema is already defined, it will be filtered out by the next step this.unresolvedRefs.push(uri); } + // Remove newly defined schemas from unresolvedRefs this.unresolvedRefs = this.unresolvedRefs.filter(function(uri){ return typeof self.schemas[uri]==='undefined'; }); @@ -103,14 +106,18 @@ Validator.prototype.getSchema = function getSchema (urn) { * @return {Array} */ Validator.prototype.validate = function validate (instance, schema, options, ctx) { + if((typeof schema !== 'boolean' && typeof schema !== 'object') || schema === null){ + throw new SchemaError('Expected `schema` to be an object or boolean'); + } if (!options) { options = {}; } - var propertyName = options.propertyName || 'instance'; + // This section indexes subschemas in the provided schema, so they don't need to be added with Validator#addSchema // This will work so long as the function at uri.resolve() will resolve a relative URI to a relative URI - var base = urilib.resolve(options.base||anonymousBase, schema.id||''); + var id = schema.$id || schema.id; + var base = urilib.resolve(options.base||anonymousBase, id||''); if(!ctx){ - ctx = new SchemaContext(schema, options, propertyName, base, Object.create(this.schemas)); + ctx = new SchemaContext(schema, options, [], base, Object.create(this.schemas)); if (!ctx.schemas[base]) { ctx.schemas[base] = schema; } @@ -120,14 +127,18 @@ Validator.prototype.validate = function validate (instance, schema, options, ctx ctx.schemas[n] = sch; } } - if (schema) { - var result = this.validateSchema(instance, schema, options, ctx); - if (!result) { - throw new Error('Result undefined'); - } + if(options.required && instance===undefined){ + var result = new ValidatorResult(instance, schema, options, ctx); + result.addError('is required, but is undefined'); return result; } - throw new SchemaError('no schema specified', schema); + var result = this.validateSchema(instance, schema, options, ctx); + if (!result) { + throw new Error('Result undefined'); + }else if(options.throwAll && result.errors.length){ + throw new ValidatorResultError(result); + } + return result; }; /** @@ -152,7 +163,7 @@ function shouldResolve(schema) { Validator.prototype.validateSchema = function validateSchema (instance, schema, options, ctx) { var result = new ValidatorResult(instance, schema, options, ctx); - // Support for the true/false schemas + // Support for the true/false schemas if(typeof schema==='boolean') { if(schema===true){ // `true` is always valid @@ -180,10 +191,10 @@ Validator.prototype.validateSchema = function validateSchema (instance, schema, } // If passed a string argument, load that schema URI - var switchSchema; - if (switchSchema = shouldResolve(schema)) { + var switchSchema = shouldResolve(schema); + if (switchSchema) { var resolved = this.resolve(schema, switchSchema, ctx); - var subctx = new SchemaContext(resolved.subschema, options, ctx.propertyPath, resolved.switchSchema, ctx.schemas); + var subctx = new SchemaContext(resolved.subschema, options, ctx.path, resolved.switchSchema, ctx.schemas); return this.validateSchema(instance, resolved.subschema, options, subctx); } @@ -220,7 +231,7 @@ Validator.prototype.validateSchema = function validateSchema (instance, schema, */ Validator.prototype.schemaTraverser = function schemaTraverser (schemaobj, s) { schemaobj.schema = helpers.deepMerge(schemaobj.schema, this.superResolve(s, schemaobj.ctx)); -} +}; /** * @private @@ -229,12 +240,12 @@ Validator.prototype.schemaTraverser = function schemaTraverser (schemaobj, s) { * @returns Object schema or resolved schema */ Validator.prototype.superResolve = function superResolve (schema, ctx) { - var ref; - if(ref = shouldResolve(schema)) { + var ref = shouldResolve(schema); + if(ref) { return this.resolve(schema, ref, ctx).subschema; } return schema; -} +}; /** * @private @@ -275,6 +286,11 @@ Validator.prototype.resolve = function resolve (schema, switchSchema, ctx) { * @return {boolean} */ Validator.prototype.testType = function validateType (instance, schema, options, ctx, type) { + if(type===undefined){ + return; + }else if(type===null){ + throw new SchemaError('Unexpected null in "type" keyword'); + } if (typeof this.types[type] == 'function') { return this.types[type].call(this, instance); } diff --git a/node_modules/jsonschema/package.json b/node_modules/jsonschema/package.json index 5954258856..1b7664e821 100644 --- a/node_modules/jsonschema/package.json +++ b/node_modules/jsonschema/package.json @@ -1,7 +1,7 @@ { "author": "Tom de Grunt ", "name": "jsonschema", - "version": "1.2.6", + "version": "1.4.1", "license": "MIT", "dependencies": {}, "contributors": [ @@ -9,12 +9,15 @@ "name": "Austin Wright" } ], - "main": "./lib", + "main": "./lib/index.js", "typings": "./lib/index.d.ts", "devDependencies": { + "@stryker-mutator/core": "^4.0.0", + "@stryker-mutator/mocha-runner": "^4.0.0", + "chai": "~4.2.0", + "eslint": "^7.7.0", "json-metaschema": "^1.2.0", - "mocha": "~3", - "chai": "~1.5.0" + "mocha": "~8.1.1" }, "optionalDependencies": {}, "engines": { @@ -33,6 +36,7 @@ }, "description": "A fast and easy to use JSON Schema validator", "scripts": { + "stryker": "stryker run", "test": "./node_modules/.bin/mocha -R spec" } } diff --git a/package-lock.json b/package-lock.json index ea8d5f3b5a..4dbc9a929b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "fs": "0.0.1-security", "get-folder-size": "^2.0.1", "js-yaml": "^4.1.0", - "jsonschema": "1.2.6", + "jsonschema": "1.4.1", "long": "^5.2.0", "path": "^0.12.7", "semver": "^7.3.2", @@ -4202,8 +4202,9 @@ } }, "node_modules/jsonschema": { - "version": "1.2.6", - "integrity": "sha512-SqhURKZG07JyKKeo/ir24QnS4/BV7a6gQy93bUSe4lUdNp0QNpIz2c9elWJQ9dpc5cQYY6cvCzgRwy0MQCLyqA==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.1.tgz", + "integrity": "sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ==", "engines": { "node": "*" } diff --git a/package.json b/package.json index aa60612533..7d60ed84d5 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "fs": "0.0.1-security", "get-folder-size": "^2.0.1", "js-yaml": "^4.1.0", - "jsonschema": "1.2.6", + "jsonschema": "1.4.1", "long": "^5.2.0", "path": "^0.12.7", "semver": "^7.3.2", From 3df80238a3c3bdb4627962d400a53476d0942e98 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Tue, 2 May 2023 15:19:05 -0700 Subject: [PATCH 04/35] Re-run sync.py with new ruamel.yaml --- .github/workflows/__ml-powered-queries.yml | 3 ++- .../workflows/__packaging-codescanning-config-inputs-js.yml | 3 ++- .github/workflows/__packaging-config-inputs-js.yml | 3 ++- .github/workflows/__packaging-config-js.yml | 3 ++- .github/workflows/__packaging-inputs-js.yml | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/__ml-powered-queries.yml b/.github/workflows/__ml-powered-queries.yml index 9bb163d9a7..fc11c53bc3 100644 --- a/.github/workflows/__ml-powered-queries.yml +++ b/.github/workflows/__ml-powered-queries.yml @@ -114,7 +114,8 @@ jobs: if: "!(matrix.version == 'stable-20220401' && runner.os == 'Windows')" with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: js/ml-powered/nosql-injection,js/ml-powered/path-injection,js/ml-powered/sql-injection,js/ml-powered/xss + queries-run: + js/ml-powered/nosql-injection,js/ml-powered/path-injection,js/ml-powered/sql-injection,js/ml-powered/xss queries-not-run: foo,bar - name: Check results diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index 781b9b3d0a..adc418ea04 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -83,7 +83,8 @@ jobs: uses: ./../action/.github/actions/check-sarif with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block + queries-run: + javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block queries-not-run: foo,bar - name: Assert Results diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 3dc4ea923e..879fecccd3 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -83,7 +83,8 @@ jobs: uses: ./../action/.github/actions/check-sarif with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block + queries-run: + javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block queries-not-run: foo,bar - name: Assert Results diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index a9aa16637f..18a03452f6 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -82,7 +82,8 @@ jobs: uses: ./../action/.github/actions/check-sarif with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block + queries-run: + javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block queries-not-run: foo,bar - name: Assert Results diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index 35603d6a38..700a790079 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -82,7 +82,8 @@ jobs: uses: ./../action/.github/actions/check-sarif with: sarif-file: ${{ runner.temp }}/results/javascript.sarif - queries-run: javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block + queries-run: + javascript/example/empty-or-one-block,javascript/example/empty-or-one-block,javascript/example/other-query-block,javascript/example/two-block queries-not-run: foo,bar - name: Assert Results From 913b8b11ad9272e150cc2220fb33f2eaf70fbf39 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 4 May 2023 18:53:44 +0000 Subject: [PATCH 05/35] Update changelog and version after v2.3.3 --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a8bda8532..e64f330e38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CodeQL Action Changelog +## [UNRELEASED] + +No user facing changes. + ## 2.3.3 - 04 May 2023 - Update default CodeQL bundle version to 2.13.1. [#1664](https://github.com/github/codeql-action/pull/1664) diff --git a/package-lock.json b/package-lock.json index ea8d5f3b5a..4596ca4d31 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "codeql", - "version": "2.3.3", + "version": "2.3.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "codeql", - "version": "2.3.3", + "version": "2.3.4", "license": "MIT", "dependencies": { "@actions/artifact": "^1.1.0", diff --git a/package.json b/package.json index aa60612533..54d9510dbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeql", - "version": "2.3.3", + "version": "2.3.4", "private": true, "description": "CodeQL action", "scripts": { From 898fba281bec9540284ad00e3aae80716832a315 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 4 May 2023 19:02:16 +0000 Subject: [PATCH 06/35] Update checked-in dependencies --- node_modules/.package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 03dc19a536..eb98f5ecb3 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "codeql", - "version": "2.3.3", + "version": "2.3.4", "lockfileVersion": 3, "requires": true, "packages": { From 684c4b5c77a26db94849489bfeaf6d15242ea21c Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Fri, 5 May 2023 08:41:11 -0700 Subject: [PATCH 07/35] Update CHANGELOG.md Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8eb386807..d602afce52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## [UNRELEASED] - You can now configure CodeQL within your code scanning workflow by passing a `config` input to the `init` Action. See [Using a custom configuration file](https://aka.ms/code-scanning-docs/config-file) for more information about configuring code scanning. [#1590](https://github.com/github/codeql-action/pull/1590) -- Updated the SARIF JSON schema file to the latest from [oasis-tcs/sarif-spec](https://github.com/oasis-tcs/sarif-spec/blob/123e95847b13fbdd4cbe2120fa5e33355d4a042b/Schemata/sarif-schema-2.1.0.json). [#1668](https://github.com/github/codeql-action/pull/1668) +- Updated the SARIF 2.1.0 JSON schema file to the latest from [oasis-tcs/sarif-spec](https://github.com/oasis-tcs/sarif-spec/blob/123e95847b13fbdd4cbe2120fa5e33355d4a042b/Schemata/sarif-schema-2.1.0.json). [#1668](https://github.com/github/codeql-action/pull/1668) ## 2.3.2 - 27 Apr 2023 From 9824588133570daa5317a5d985c3c181c80c4354 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Fri, 5 May 2023 12:02:19 -0700 Subject: [PATCH 08/35] Fix broken regex `($i)` is not valid for javascript regexes. --- src/sarif-schema-2.1.0.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sarif-schema-2.1.0.json b/src/sarif-schema-2.1.0.json index 5020cc1668..3af5db6432 100644 --- a/src/sarif-schema-2.1.0.json +++ b/src/sarif-schema-2.1.0.json @@ -2368,7 +2368,7 @@ "description": "The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase culture code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646).", "type": "string", "default": "en-US", - "pattern": "^(?i)[a-zA]{2}(-[a-z]{2})?$" + "pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$" }, "versionControlProvenance": { @@ -3078,7 +3078,7 @@ "description": "The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase language code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646).", "type": "string", "default": "en-US", - "pattern": "^(?i)[a-zA]{2}(-[a-z]{2})?$" + "pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$" }, "contents": { @@ -3386,4 +3386,4 @@ } } } -} \ No newline at end of file +} From 9c51a58355bd94b5332c3b0899f3c2a145ee3fa7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 May 2023 18:00:47 +0000 Subject: [PATCH 09/35] Bump peter-evans/create-pull-request from 5.0.0 to 5.0.1 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 5.0.0 to 5.0.1. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5...284f54f989303d2699d373481a0cfa13ad5a6666) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .../workflows/update-supported-enterprise-server-versions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-supported-enterprise-server-versions.yml b/.github/workflows/update-supported-enterprise-server-versions.yml index 9de0170b11..5436c30674 100644 --- a/.github/workflows/update-supported-enterprise-server-versions.yml +++ b/.github/workflows/update-supported-enterprise-server-versions.yml @@ -36,7 +36,7 @@ jobs: env: ENTERPRISE_RELEASES_PATH: ${{ github.workspace }}/enterprise-releases/ - name: Commit Changes - uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5 # v5.0.0 + uses: peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666 # v5.0.1 with: commit-message: Update supported GitHub Enterprise Server versions. title: Update supported GitHub Enterprise Server versions. From edb138ff88fe3afeb202df3630cf643e7e2459ec Mon Sep 17 00:00:00 2001 From: Shaikhul Islam Date: Tue, 9 May 2023 14:39:49 +0000 Subject: [PATCH 10/35] remove consts MismatchedBranches and MissingPushHook --- lib/workflow.js | 65 ----------------------------------- lib/workflow.js.map | 2 +- lib/workflow.test.js | 57 +------------------------------ lib/workflow.test.js.map | 2 +- src/workflow.test.ts | 72 +------------------------------------- src/workflow.ts | 74 ---------------------------------------- 6 files changed, 4 insertions(+), 268 deletions(-) diff --git a/lib/workflow.js b/lib/workflow.js index de0a18c6bb..cda8598632 100644 --- a/lib/workflow.js +++ b/lib/workflow.js @@ -34,9 +34,6 @@ const core = __importStar(require("@actions/core")); const yaml = __importStar(require("js-yaml")); const api = __importStar(require("./api-client")); const util_1 = require("./util"); -function isObject(o) { - return o !== null && typeof o === "object"; -} const GLOB_PATTERN = new RegExp("(\\*\\*?)"); function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string @@ -65,18 +62,6 @@ function patternIsSuperset(patternA, patternB) { return patternToRegExp(patternA).test(patternB); } exports.patternIsSuperset = patternIsSuperset; -function branchesToArray(branches) { - if (typeof branches === "string") { - return [branches]; - } - if (Array.isArray(branches)) { - if (branches.length === 0) { - return "**"; - } - return branches; - } - return "**"; -} function toCodedErrors(errors) { return Object.entries(errors).reduce((acc, [code, message]) => { acc[code] = { message, code }; @@ -86,8 +71,6 @@ function toCodedErrors(errors) { // code to send back via status report // message to add as a warning annotation to the run exports.WorkflowErrors = toCodedErrors({ - MismatchedBranches: `Please make sure that every branch in on.pull_request is also in on.push so that Code Scanning can compare pull requests against the state of the base branch.`, - MissingPushHook: `Please specify an on.push hook so that Code Scanning can compare pull requests against the state of the base branch.`, CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`, }); function getWorkflowErrors(doc) { @@ -110,54 +93,6 @@ function getWorkflowErrors(doc) { } } } - let missingPush = false; - if (doc.on === undefined) { - // this is not a valid config - } - else if (typeof doc.on === "string") { - if (doc.on === "pull_request") { - missingPush = true; - } - } - else if (Array.isArray(doc.on)) { - const hasPush = doc.on.includes("push"); - const hasPullRequest = doc.on.includes("pull_request"); - if (hasPullRequest && !hasPush) { - missingPush = true; - } - } - else if (isObject(doc.on)) { - const hasPush = Object.prototype.hasOwnProperty.call(doc.on, "push"); - const hasPullRequest = Object.prototype.hasOwnProperty.call(doc.on, "pull_request"); - if (!hasPush && hasPullRequest) { - missingPush = true; - } - // if doc.on.pull_request is null that means 'all branches' - // if doc.on.pull_request is undefined that means 'off' - // we only want to check for mismatched branches if pull_request is on. - if (doc.on.pull_request !== undefined) { - const push = branchesToArray(doc.on.push?.branches); - if (push !== "**") { - const pull_request = branchesToArray(doc.on.pull_request?.branches); - if (pull_request !== "**") { - const difference = pull_request.filter((value) => !push.some((o) => patternIsSuperset(o, value))); - if (difference.length > 0) { - // there are branches in pull_request that may not have a baseline - // because we are not building them on push - errors.push(exports.WorkflowErrors.MismatchedBranches); - } - } - else if (push.length > 0) { - // push is set up to run on a subset of branches - // and you could open a PR against a branch with no baseline - errors.push(exports.WorkflowErrors.MismatchedBranches); - } - } - } - } - if (missingPush) { - errors.push(exports.WorkflowErrors.MissingPushHook); - } return errors; } exports.getWorkflowErrors = getWorkflowErrors; diff --git a/lib/workflow.js.map b/lib/workflow.js.map index d6304b72fe..7bc9b135f2 100644 --- a/lib/workflow.js.map +++ b/lib/workflow.js.map @@ -1 +1 @@ -{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,gDAAwB;AAExB,oDAAsC;AACtC,8CAAgC;AAEhC,kDAAoC;AAEpC,iCAA6C;AAqC7C,SAAS,QAAQ,CAAC,CAAU;IAC1B,OAAO,CAAC,KAAK,IAAI,IAAI,OAAO,C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E,EACtB,UAAU,EACV,UAAU,CACX,CAAC;AACJ,CAAC;AAZD,0DAYC;AAED;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,eAAe,CACpB,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,QAAQ,EACR,UAAU,CACX,CAAC;AACJ,CAAC;AAZD,sDAYC;AAED;;;;;;;;GAQG;AACH,SAAgB,2BAA2B,CACzC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,CACL,eAAe,CACb,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,eAAe,EACf,UAAU,CACX,IAAI,IAAA,0BAAmB,EAAC,kBAAkB,CAAC,CAAC,oEAAoE;KAClH,CAAC;AACJ,CAAC;AAdD,kEAcC"} \ No newline at end of file diff --git a/lib/workflow.test.js b/lib/workflow.test.js index b0959a426d..27ee9a9a86 100644 --- a/lib/workflow.test.js +++ b/lib/workflow.test.js @@ -42,10 +42,6 @@ function errorCodes(actual, expected) { const errors = (0, workflow_1.getWorkflowErrors)({ on: ["push"] }); t.deepEqual(...errorCodes(errors, [])); }); -(0, ava_1.default)("getWorkflowErrors() when on.push is an array missing push", (t) => { - const errors = (0, workflow_1.getWorkflowErrors)({ on: ["pull_request"] }); - t.deepEqual(...errorCodes(errors, [workflow_1.WorkflowErrors.MissingPushHook])); -}); (0, ava_1.default)("getWorkflowErrors() when on.push is valid", (t) => { const errors = (0, workflow_1.getWorkflowErrors)({ on: ["push", "pull_request"], @@ -64,12 +60,6 @@ function errorCodes(actual, expected) { }); t.deepEqual(...errorCodes(errors, [])); }); -(0, ava_1.default)("getWorkflowErrors() when on.pull_requests is a string", (t) => { - const errors = (0, workflow_1.getWorkflowErrors)({ - on: { push: { branches: ["main"] }, pull_request: { branches: "*" } }, - }); - t.deepEqual(...errorCodes(errors, [workflow_1.WorkflowErrors.MismatchedBranches])); -}); (0, ava_1.default)("getWorkflowErrors() when on.pull_requests is a string and correct", (t) => { const errors = (0, workflow_1.getWorkflowErrors)({ on: { push: { branches: "*" }, pull_request: { branches: "*" } }, @@ -84,15 +74,6 @@ function errorCodes(actual, expected) { `)); t.deepEqual(...errorCodes(errors, [])); }); -(0, ava_1.default)("getWorkflowErrors() when on.push is mismatched", (t) => { - const errors = (0, workflow_1.getWorkflowErrors)({ - on: { - push: { branches: ["main"] }, - pull_request: { branches: ["feature"] }, - }, - }); - t.deepEqual(...errorCodes(errors, [workflow_1.WorkflowErrors.MismatchedBranches])); -}); (0, ava_1.default)("getWorkflowErrors() when on.push is not mismatched", (t) => { const errors = (0, workflow_1.getWorkflowErrors)({ on: { @@ -102,15 +83,6 @@ function errorCodes(actual, expected) { }); t.deepEqual(...errorCodes(errors, [])); }); -(0, ava_1.default)("getWorkflowErrors() when on.push is mismatched for pull_request", (t) => { - const errors = (0, workflow_1.getWorkflowErrors)({ - on: { - push: { branches: ["main"] }, - pull_request: { branches: ["main", "feature"] }, - }, - }); - t.deepEqual(...errorCodes(errors, [workflow_1.WorkflowErrors.MismatchedBranches])); -}); (0, ava_1.default)("getWorkflowErrors() for a range of malformed workflows", (t) => { t.deepEqual(...errorCodes((0, workflow_1.getWorkflowErrors)({ on: { @@ -175,16 +147,6 @@ function errorCodes(actual, expected) { }, }), [])); }); -(0, ava_1.default)("getWorkflowErrors() when on.pull_request for every branch but push specifies branches", (t) => { - const errors = (0, workflow_1.getWorkflowErrors)(yaml.load(` - name: "CodeQL" - on: - push: - branches: ["main"] - pull_request: - `)); - t.deepEqual(...errorCodes(errors, [workflow_1.WorkflowErrors.MismatchedBranches])); -}); (0, ava_1.default)("getWorkflowErrors() when on.pull_request for wildcard branches", (t) => { const errors = (0, workflow_1.getWorkflowErrors)({ on: { @@ -194,15 +156,6 @@ function errorCodes(actual, expected) { }); t.deepEqual(...errorCodes(errors, [])); }); -(0, ava_1.default)("getWorkflowErrors() when on.pull_request for mismatched wildcard branches", (t) => { - const errors = (0, workflow_1.getWorkflowErrors)({ - on: { - push: { branches: ["feature/moose"] }, - pull_request: { branches: "feature/*" }, - }, - }); - t.deepEqual(...errorCodes(errors, [workflow_1.WorkflowErrors.MismatchedBranches])); -}); (0, ava_1.default)("getWorkflowErrors() when HEAD^2 is checked out", (t) => { process.env.GITHUB_JOB = "test"; const errors = (0, workflow_1.getWorkflowErrors)({ @@ -215,13 +168,6 @@ function errorCodes(actual, expected) { const message = (0, workflow_1.formatWorkflowErrors)([workflow_1.WorkflowErrors.CheckoutWrongHead]); t.true(message.startsWith("1 issue was detected with this workflow:")); }); -(0, ava_1.default)("formatWorkflowErrors() when there are multiple errors", (t) => { - const message = (0, workflow_1.formatWorkflowErrors)([ - workflow_1.WorkflowErrors.CheckoutWrongHead, - workflow_1.WorkflowErrors.MismatchedBranches, - ]); - t.true(message.startsWith("2 issues were detected with this workflow:")); -}); (0, ava_1.default)("formatWorkflowCause() with no errors", (t) => { const message = (0, workflow_1.formatWorkflowCause)([]); t.deepEqual(message, undefined); @@ -229,9 +175,8 @@ function errorCodes(actual, expected) { (0, ava_1.default)("formatWorkflowCause()", (t) => { const message = (0, workflow_1.formatWorkflowCause)([ workflow_1.WorkflowErrors.CheckoutWrongHead, - workflow_1.WorkflowErrors.MismatchedBranches, ]); - t.deepEqual(message, "CheckoutWrongHead,MismatchedBranches"); + t.deepEqual(message, "CheckoutWrongHead"); t.deepEqual((0, workflow_1.formatWorkflowCause)([]), undefined); }); (0, ava_1.default)("patternIsSuperset()", (t) => { diff --git a/lib/workflow.test.js.map b/lib/workflow.test.js.map index 53cd4fc7fc..e68f3bcd70 100644 --- a/lib/workflow.test.js.map +++ b/lib/workflow.test.js.map @@ -1 +1 @@ -{"version":3,"file":"workflow.test.js","sourceRoot":"","sources":["../src/workflow.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,8CAAgC;AAEhC,mDAA6C;AAC7C,yCASoB;AAEpB,SAAS,UAAU,CAC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GAAG,CAAC,mBAAmB,CAAC,GAAG,sCAAsC,CAAC;IAC1E,CAAC,CAAC,MAAM,CACN,GAAG,EAAE,CACH,IAAA,kCAAuB,EACrB,IAAI,CAAC,IAAI,CAAC;;;;;;;;;SAST,CAAa,EACd,UAAU,EACV,EAAE,CACH,EACH;QACE,OAAO,EACL,kFAAkF;YAClF,gCAAgC;KACnC,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,kFAAkF,EAAE,CAAC,CAAC,EAAE,EAAE;IAC7F,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,GAAG,sCAAsC,CAAC;IAC1E,CAAC,CAAC,MAAM,CACN,GAAG,EAAE,CACH,IAAA,kCAAuB,EACrB,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;SAaT,CAAa,EACd,UAAU,EACV,EAAE,CACH,EACH;QACE,OAAO,EACL,sFAAsF;YACtF,oDAAoD;KACvD,CACF,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"workflow.test.js","sourceRoot":"","sources":["../src/workflow.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,8CAAgC;AAEhC,mDAA6C;AAC7C,yCASoB;AAEpB,SAAS,UAAU,CACjB,MAAoB,EACpB,QAAsB;IAEtB,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,sCAAsC,EAAE,CAAC,CAAC,EAAE,EAAE;IACjD,MAAM,MAAM,GAAG,IAAA,4BAAiB,EAAC,EAAE,EAAE,EAAE,EAAE,EAAE,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,CAAC;;;;;;;;;;;;;SAaT,CAAa,EACd,UAAU,EACV,EAAE,CACH,EACH;QACE,OAAO,EACL,sFAAsF;YACtF,oDAAoD;KACvD,CACF,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/workflow.test.ts b/src/workflow.test.ts index 02b2935696..fcf3bd38ee 100644 --- a/src/workflow.test.ts +++ b/src/workflow.test.ts @@ -34,12 +34,6 @@ test("getWorkflowErrors() when on.push is an array missing pull_request", (t) => t.deepEqual(...errorCodes(errors, [])); }); -test("getWorkflowErrors() when on.push is an array missing push", (t) => { - const errors = getWorkflowErrors({ on: ["pull_request"] }); - - t.deepEqual(...errorCodes(errors, [WorkflowErrors.MissingPushHook])); -}); - test("getWorkflowErrors() when on.push is valid", (t) => { const errors = getWorkflowErrors({ on: ["push", "pull_request"], @@ -64,14 +58,6 @@ test("getWorkflowErrors() when on.push is a correct object", (t) => { t.deepEqual(...errorCodes(errors, [])); }); -test("getWorkflowErrors() when on.pull_requests is a string", (t) => { - const errors = getWorkflowErrors({ - on: { push: { branches: ["main"] }, pull_request: { branches: "*" } }, - }); - - t.deepEqual(...errorCodes(errors, [WorkflowErrors.MismatchedBranches])); -}); - test("getWorkflowErrors() when on.pull_requests is a string and correct", (t) => { const errors = getWorkflowErrors({ on: { push: { branches: "*" }, pull_request: { branches: "*" } }, @@ -92,17 +78,6 @@ test("getWorkflowErrors() when on.push is correct with empty objects", (t) => { t.deepEqual(...errorCodes(errors, [])); }); -test("getWorkflowErrors() when on.push is mismatched", (t) => { - const errors = getWorkflowErrors({ - on: { - push: { branches: ["main"] }, - pull_request: { branches: ["feature"] }, - }, - }); - - t.deepEqual(...errorCodes(errors, [WorkflowErrors.MismatchedBranches])); -}); - test("getWorkflowErrors() when on.push is not mismatched", (t) => { const errors = getWorkflowErrors({ on: { @@ -114,17 +89,6 @@ test("getWorkflowErrors() when on.push is not mismatched", (t) => { t.deepEqual(...errorCodes(errors, [])); }); -test("getWorkflowErrors() when on.push is mismatched for pull_request", (t) => { - const errors = getWorkflowErrors({ - on: { - push: { branches: ["main"] }, - pull_request: { branches: ["main", "feature"] }, - }, - }); - - t.deepEqual(...errorCodes(errors, [WorkflowErrors.MismatchedBranches])); -}); - test("getWorkflowErrors() for a range of malformed workflows", (t) => { t.deepEqual( ...errorCodes( @@ -251,20 +215,6 @@ test("getWorkflowErrors() for a range of malformed workflows", (t) => { ); }); -test("getWorkflowErrors() when on.pull_request for every branch but push specifies branches", (t) => { - const errors = getWorkflowErrors( - yaml.load(` - name: "CodeQL" - on: - push: - branches: ["main"] - pull_request: - `) as Workflow - ); - - t.deepEqual(...errorCodes(errors, [WorkflowErrors.MismatchedBranches])); -}); - test("getWorkflowErrors() when on.pull_request for wildcard branches", (t) => { const errors = getWorkflowErrors({ on: { @@ -276,17 +226,6 @@ test("getWorkflowErrors() when on.pull_request for wildcard branches", (t) => { t.deepEqual(...errorCodes(errors, [])); }); -test("getWorkflowErrors() when on.pull_request for mismatched wildcard branches", (t) => { - const errors = getWorkflowErrors({ - on: { - push: { branches: ["feature/moose"] }, - pull_request: { branches: "feature/*" }, - }, - }); - - t.deepEqual(...errorCodes(errors, [WorkflowErrors.MismatchedBranches])); -}); - test("getWorkflowErrors() when HEAD^2 is checked out", (t) => { process.env.GITHUB_JOB = "test"; @@ -303,14 +242,6 @@ test("formatWorkflowErrors() when there is one error", (t) => { t.true(message.startsWith("1 issue was detected with this workflow:")); }); -test("formatWorkflowErrors() when there are multiple errors", (t) => { - const message = formatWorkflowErrors([ - WorkflowErrors.CheckoutWrongHead, - WorkflowErrors.MismatchedBranches, - ]); - t.true(message.startsWith("2 issues were detected with this workflow:")); -}); - test("formatWorkflowCause() with no errors", (t) => { const message = formatWorkflowCause([]); @@ -320,10 +251,9 @@ test("formatWorkflowCause() with no errors", (t) => { test("formatWorkflowCause()", (t) => { const message = formatWorkflowCause([ WorkflowErrors.CheckoutWrongHead, - WorkflowErrors.MismatchedBranches, ]); - t.deepEqual(message, "CheckoutWrongHead,MismatchedBranches"); + t.deepEqual(message, "CheckoutWrongHead"); t.deepEqual(formatWorkflowCause([]), undefined); }); diff --git a/src/workflow.ts b/src/workflow.ts index 0f6985bc52..a9a6b222e1 100644 --- a/src/workflow.ts +++ b/src/workflow.ts @@ -44,10 +44,6 @@ export interface Workflow { on?: string | string[] | WorkflowTriggers; } -function isObject(o: unknown): o is object { - return o !== null && typeof o === "object"; -} - const GLOB_PATTERN = new RegExp("(\\*\\*?)"); function escapeRegExp(string) { @@ -79,18 +75,6 @@ export function patternIsSuperset(patternA: string, patternB: string): boolean { return patternToRegExp(patternA).test(patternB); } -function branchesToArray(branches?: string | null | string[]): string[] | "**" { - if (typeof branches === "string") { - return [branches]; - } - if (Array.isArray(branches)) { - if (branches.length === 0) { - return "**"; - } - return branches; - } - return "**"; -} export interface CodedError { message: string; code: string; @@ -108,8 +92,6 @@ function toCodedErrors(errors: { // code to send back via status report // message to add as a warning annotation to the run export const WorkflowErrors = toCodedErrors({ - MismatchedBranches: `Please make sure that every branch in on.pull_request is also in on.push so that Code Scanning can compare pull requests against the state of the base branch.`, - MissingPushHook: `Please specify an on.push hook so that Code Scanning can compare pull requests against the state of the base branch.`, CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`, }); @@ -138,62 +120,6 @@ export function getWorkflowErrors(doc: Workflow): CodedError[] { } } - let missingPush = false; - - if (doc.on === undefined) { - // this is not a valid config - } else if (typeof doc.on === "string") { - if (doc.on === "pull_request") { - missingPush = true; - } - } else if (Array.isArray(doc.on)) { - const hasPush = doc.on.includes("push"); - const hasPullRequest = doc.on.includes("pull_request"); - if (hasPullRequest && !hasPush) { - missingPush = true; - } - } else if (isObject(doc.on)) { - const hasPush = Object.prototype.hasOwnProperty.call(doc.on, "push"); - const hasPullRequest = Object.prototype.hasOwnProperty.call( - doc.on, - "pull_request" - ); - - if (!hasPush && hasPullRequest) { - missingPush = true; - } - - // if doc.on.pull_request is null that means 'all branches' - // if doc.on.pull_request is undefined that means 'off' - // we only want to check for mismatched branches if pull_request is on. - if (doc.on.pull_request !== undefined) { - const push = branchesToArray(doc.on.push?.branches); - - if (push !== "**") { - const pull_request = branchesToArray(doc.on.pull_request?.branches); - - if (pull_request !== "**") { - const difference = pull_request.filter( - (value) => !push.some((o) => patternIsSuperset(o, value)) - ); - if (difference.length > 0) { - // there are branches in pull_request that may not have a baseline - // because we are not building them on push - errors.push(WorkflowErrors.MismatchedBranches); - } - } else if (push.length > 0) { - // push is set up to run on a subset of branches - // and you could open a PR against a branch with no baseline - errors.push(WorkflowErrors.MismatchedBranches); - } - } - } - } - - if (missingPush) { - errors.push(WorkflowErrors.MissingPushHook); - } - return errors; } From 699855c0483251d6975e2fc6d8415ce109dde5a0 Mon Sep 17 00:00:00 2001 From: Shaikhul Islam Date: Tue, 9 May 2023 14:55:18 +0000 Subject: [PATCH 11/35] fix linter issue --- lib/workflow.test.js | 4 +--- lib/workflow.test.js.map | 2 +- src/workflow.test.ts | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/workflow.test.js b/lib/workflow.test.js index 27ee9a9a86..9db561da76 100644 --- a/lib/workflow.test.js +++ b/lib/workflow.test.js @@ -173,9 +173,7 @@ function errorCodes(actual, expected) { t.deepEqual(message, undefined); }); (0, ava_1.default)("formatWorkflowCause()", (t) => { - const message = (0, workflow_1.formatWorkflowCause)([ - workflow_1.WorkflowErrors.CheckoutWrongHead, - ]); + const message = (0, workflow_1.formatWorkflowCause)([workflow_1.WorkflowErrors.CheckoutWrongHead]); t.deepEqual(message, "CheckoutWrongHead"); t.deepEqual((0, workflow_1.formatWorkflowCause)([]), undefined); }); diff --git a/lib/workflow.test.js.map b/lib/workflow.test.js.map index e68f3bcd70..d50a92c8ff 100644 --- a/lib/workflow.test.js.map +++ b/lib/workflow.test.js.map @@ -1 +1 @@ -{"version":3,"file":"workflow.test.js","sourceRoot":"","sources":["../src/workflow.test.ts"],"names":[],"mapp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AAE,CAAC,CAAC,EAAE,EAAE;IACpF,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,GAAG,sCAAsC,CAAC;IAC1E,CAAC,CAAC,MAAM,CACN,GAAG,EAAE,CACH,IAAA,kCAAuB,EACrB,IAAI,CAAC,IAAI,CAAC;;;;;;;;;SAST,CAAa,EACd,UAAU,EACV,EAAE,CACH,EACH;QACE,OAAO,EACL,kFAAkF;YAClF,gCAAgC;KACnC,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,kFAAkF,EAAE,CAAC,CAAC,EAAE,EAAE;IAC7F,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,GAAG,sCAAsC,CAAC;IAC1E,CAAC,CAAC,MAAM,CACN,GAAG,EAAE,CACH,IAAA,kCAAuB,EACrB,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;SAaT,CAAa,EACd,UAAU,EACV,EAAE,CACH,EACH;QACE,OAAO,EACL,sFAAsF;YACtF,oDAAoD;KACvD,CACF,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"workflow.test.js","sourceRoot":"","sources":["../src/workflow.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,8CAAgC;AAEhC,mDAA6C;AAC7C,yCASoB;AAEpB,SAAS,UAAU,CACjB,MAAoB,EACpB,QAAsB;IAEtB,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,sCAAsC,EAAE,CAAC,CAAC,EAAE,EAAE;IACjD,MAAM,MAAM,GAAG,IAA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AAE,CACH,IAAA,kCAAuB,EACrB,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;SAaT,CAAa,EACd,UAAU,EACV,EAAE,CACH,EACH;QACE,OAAO,EACL,sFAAsF;YACtF,oDAAoD;KACvD,CACF,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/workflow.test.ts b/src/workflow.test.ts index fcf3bd38ee..0c2b066ca0 100644 --- a/src/workflow.test.ts +++ b/src/workflow.test.ts @@ -249,9 +249,7 @@ test("formatWorkflowCause() with no errors", (t) => { }); test("formatWorkflowCause()", (t) => { - const message = formatWorkflowCause([ - WorkflowErrors.CheckoutWrongHead, - ]); + const message = formatWorkflowCause([WorkflowErrors.CheckoutWrongHead]); t.deepEqual(message, "CheckoutWrongHead"); t.deepEqual(formatWorkflowCause([]), undefined); From f8707c9939b1d7d1bcbc1d90e6cbc88c29b976db Mon Sep 17 00:00:00 2001 From: Shaikhul Islam Date: Wed, 10 May 2023 15:01:33 +0000 Subject: [PATCH 12/35] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 195173a35d..b36c3cdddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ No user facing changes. +## 2.3.4 - 10 May 2023 + +- Remove some checks from code scanning workflow validation. [#1675](https://github.com/github/codeql-action/pull/1675) + ## 2.3.3 - 04 May 2023 - Update default CodeQL bundle version to 2.13.1. [#1664](https://github.com/github/codeql-action/pull/1664) From c26fc558bac04ec3ead36024d756f49373e90012 Mon Sep 17 00:00:00 2001 From: Shaikhul Islam Date: Wed, 10 May 2023 20:37:56 +0000 Subject: [PATCH 13/35] revert MissingPushHook checks changes --- lib/workflow.js | 30 ++++++++++++++++++++++++++++++ lib/workflow.js.map | 2 +- lib/workflow.test.js | 18 ++++++++++++++++-- lib/workflow.test.js.map | 2 +- src/workflow.test.ts | 21 +++++++++++++++++++-- src/workflow.ts | 35 +++++++++++++++++++++++++++++++++++ 6 files changed, 102 insertions(+), 6 deletions(-) diff --git a/lib/workflow.js b/lib/workflow.js index cda8598632..6e467cc6d4 100644 --- a/lib/workflow.js +++ b/lib/workflow.js @@ -34,6 +34,9 @@ const core = __importStar(require("@actions/core")); const yaml = __importStar(require("js-yaml")); const api = __importStar(require("./api-client")); const util_1 = require("./util"); +function isObject(o) { + return o !== null && typeof o === "object"; +} const GLOB_PATTERN = new RegExp("(\\*\\*?)"); function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string @@ -71,6 +74,7 @@ function toCodedErrors(errors) { // code to send back via status report // message to add as a warning annotation to the run exports.WorkflowErrors = toCodedErrors({ + MissingPushHook: `Please specify an on.push hook.`, CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`, }); function getWorkflowErrors(doc) { @@ -93,6 +97,32 @@ function getWorkflowErrors(doc) { } } } + let missingPush = false; + if (doc.on === undefined) { + // this is not a valid config + } + else if (typeof doc.on === "string") { + if (doc.on === "pull_request") { + missingPush = true; + } + } + else if (Array.isArray(doc.on)) { + const hasPush = doc.on.includes("push"); + const hasPullRequest = doc.on.includes("pull_request"); + if (hasPullRequest && !hasPush) { + missingPush = true; + } + } + else if (isObject(doc.on)) { + const hasPush = Object.prototype.hasOwnProperty.call(doc.on, "push"); + const hasPullRequest = Object.prototype.hasOwnProperty.call(doc.on, "pull_request"); + if (!hasPush && hasPullRequest) { + missingPush = true; + } + } + if (missingPush) { + errors.push(exports.WorkflowErrors.MissingPushHook); + } return errors; } exports.getWorkflowErrors = getWorkflowErrors; diff --git a/lib/workflow.js.map b/lib/workflow.js.map index 7bc9b135f2..13bd1419a4 100644 --- a/lib/workflow.js.map +++ b/lib/workflow.js.map @@ -1 +1 @@ -{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;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AAC;KACpB;SAAM;QACL,OAAO,8BAA8B,CAAC;KACvC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,uBAAuB,CACrC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,eAAe,CACpB,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,UAAU,EACV,UAAU,CACX,CAAC;AACJ,CAAC;AAZD,0DAYC;AAED;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,eAAe,CACpB,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,QAAQ,EACR,UAAU,CACX,CAAC;AACJ,CAAC;AAZD,sDAYC;AAED;;;;;;;;GAQG;AACH,SAAgB,2BAA2B,CACzC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,CACL,eAAe,CACb,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,eAAe,EACf,UAAU,CACX,IAAI,IAAA,0BAAmB,EAAC,kBAAkB,CAAC,CAAC,oEAAoE;KAClH,CAAC;AACJ,CAAC;AAdD,kEAcC"} \ No newline at end of file diff --git a/lib/workflow.test.js b/lib/workflow.test.js index 9db561da76..71b8537d50 100644 --- a/lib/workflow.test.js +++ b/lib/workflow.test.js @@ -42,6 +42,10 @@ function errorCodes(actual, expected) { const errors = (0, workflow_1.getWorkflowErrors)({ on: ["push"] }); t.deepEqual(...errorCodes(errors, [])); }); +(0, ava_1.default)("getWorkflowErrors() when on.push is an array missing push", (t) => { + const errors = (0, workflow_1.getWorkflowErrors)({ on: ["pull_request"] }); + t.deepEqual(...errorCodes(errors, [workflow_1.WorkflowErrors.MissingPushHook])); +}); (0, ava_1.default)("getWorkflowErrors() when on.push is valid", (t) => { const errors = (0, workflow_1.getWorkflowErrors)({ on: ["push", "pull_request"], @@ -168,13 +172,23 @@ function errorCodes(actual, expected) { const message = (0, workflow_1.formatWorkflowErrors)([workflow_1.WorkflowErrors.CheckoutWrongHead]); t.true(message.startsWith("1 issue was detected with this workflow:")); }); +(0, ava_1.default)("formatWorkflowErrors() when there are multiple errors", (t) => { + const message = (0, workflow_1.formatWorkflowErrors)([ + workflow_1.WorkflowErrors.CheckoutWrongHead, + workflow_1.WorkflowErrors.MissingPushHook, + ]); + t.true(message.startsWith("2 issues were detected with this workflow:")); +}); (0, ava_1.default)("formatWorkflowCause() with no errors", (t) => { const message = (0, workflow_1.formatWorkflowCause)([]); t.deepEqual(message, undefined); }); (0, ava_1.default)("formatWorkflowCause()", (t) => { - const message = (0, workflow_1.formatWorkflowCause)([workflow_1.WorkflowErrors.CheckoutWrongHead]); - t.deepEqual(message, "CheckoutWrongHead"); + const message = (0, workflow_1.formatWorkflowCause)([ + workflow_1.WorkflowErrors.CheckoutWrongHead, + workflow_1.WorkflowErrors.MissingPushHook, + ]); + t.deepEqual(message, "CheckoutWrongHead,MissingPushHook"); t.deepEqual((0, workflow_1.formatWorkflowCause)([]), undefined); }); (0, ava_1.default)("patternIsSuperset()", (t) => { diff --git a/lib/workflow.test.js.map b/lib/workflow.test.js.map index d50a92c8ff..a4378055ad 100644 --- a/lib/workflow.test.js.map +++ b/lib/workflow.test.js.map @@ -1 +1 @@ -{"version":3,"file":"workflow.test.js","sourceRoot":"","sources":["../src/workflow.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAuB;AACvB,8CAAgC;AAEhC,mDAA6C;AAC7C,yCASoB;AAEpB,SAAS,UAAU,CACjB,MAAoB,EACpB,QAAsB;IAEtB,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;AAE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AgC;KACnC,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,kFAAkF,EAAE,CAAC,CAAC,EAAE,EAAE;IAC7F,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,GAAG,sCAAsC,CAAC;IAC1E,CAAC,CAAC,MAAM,CACN,GAAG,EAAE,CACH,IAAA,kCAAuB,EACrB,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;SAaT,CAAa,EACd,UAAU,EACV,EAAE,CACH,EACH;QACE,OAAO,EACL,sFAAsF;YACtF,oDAAoD;KACvD,CACF,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/workflow.test.ts b/src/workflow.test.ts index 0c2b066ca0..3a354e53b6 100644 --- a/src/workflow.test.ts +++ b/src/workflow.test.ts @@ -34,6 +34,12 @@ test("getWorkflowErrors() when on.push is an array missing pull_request", (t) => t.deepEqual(...errorCodes(errors, [])); }); +test("getWorkflowErrors() when on.push is an array missing push", (t) => { + const errors = getWorkflowErrors({ on: ["pull_request"] }); + + t.deepEqual(...errorCodes(errors, [WorkflowErrors.MissingPushHook])); +}); + test("getWorkflowErrors() when on.push is valid", (t) => { const errors = getWorkflowErrors({ on: ["push", "pull_request"], @@ -242,6 +248,14 @@ test("formatWorkflowErrors() when there is one error", (t) => { t.true(message.startsWith("1 issue was detected with this workflow:")); }); +test("formatWorkflowErrors() when there are multiple errors", (t) => { + const message = formatWorkflowErrors([ + WorkflowErrors.CheckoutWrongHead, + WorkflowErrors.MissingPushHook, + ]); + t.true(message.startsWith("2 issues were detected with this workflow:")); +}); + test("formatWorkflowCause() with no errors", (t) => { const message = formatWorkflowCause([]); @@ -249,9 +263,12 @@ test("formatWorkflowCause() with no errors", (t) => { }); test("formatWorkflowCause()", (t) => { - const message = formatWorkflowCause([WorkflowErrors.CheckoutWrongHead]); + const message = formatWorkflowCause([ + WorkflowErrors.CheckoutWrongHead, + WorkflowErrors.MissingPushHook, + ]); - t.deepEqual(message, "CheckoutWrongHead"); + t.deepEqual(message, "CheckoutWrongHead,MissingPushHook"); t.deepEqual(formatWorkflowCause([]), undefined); }); diff --git a/src/workflow.ts b/src/workflow.ts index a9a6b222e1..c5e9bd785b 100644 --- a/src/workflow.ts +++ b/src/workflow.ts @@ -44,6 +44,10 @@ export interface Workflow { on?: string | string[] | WorkflowTriggers; } +function isObject(o: unknown): o is object { + return o !== null && typeof o === "object"; +} + const GLOB_PATTERN = new RegExp("(\\*\\*?)"); function escapeRegExp(string) { @@ -92,6 +96,7 @@ function toCodedErrors(errors: { // code to send back via status report // message to add as a warning annotation to the run export const WorkflowErrors = toCodedErrors({ + MissingPushHook: `Please specify an on.push hook.`, CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`, }); @@ -120,6 +125,36 @@ export function getWorkflowErrors(doc: Workflow): CodedError[] { } } + let missingPush = false; + + if (doc.on === undefined) { + // this is not a valid config + } else if (typeof doc.on === "string") { + if (doc.on === "pull_request") { + missingPush = true; + } + } else if (Array.isArray(doc.on)) { + const hasPush = doc.on.includes("push"); + const hasPullRequest = doc.on.includes("pull_request"); + if (hasPullRequest && !hasPush) { + missingPush = true; + } + } else if (isObject(doc.on)) { + const hasPush = Object.prototype.hasOwnProperty.call(doc.on, "push"); + const hasPullRequest = Object.prototype.hasOwnProperty.call( + doc.on, + "pull_request" + ); + + if (!hasPush && hasPullRequest) { + missingPush = true; + } + } + + if (missingPush) { + errors.push(WorkflowErrors.MissingPushHook); + } + return errors; } From 0ccdbf8cd523a09f64f1a01c33e5c840e224732a Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Tue, 9 May 2023 10:13:30 +0200 Subject: [PATCH 14/35] Feature flag to disable python dependency installation --- lib/analyze.js | 9 +++++++++ lib/analyze.js.map | 2 +- lib/feature-flags.js | 11 +++++++++++ lib/feature-flags.js.map | 2 +- lib/init-action.js | 19 ++++++++++++++----- lib/init-action.js.map | 2 +- src/analyze.ts | 14 ++++++++++++++ src/feature-flags.ts | 11 +++++++++++ src/init-action.ts | 36 +++++++++++++++++++++++++++++------- 9 files changed, 91 insertions(+), 15 deletions(-) diff --git a/lib/analyze.js b/lib/analyze.js index b6c6e93998..1cac7d0f9d 100644 --- a/lib/analyze.js +++ b/lib/analyze.js @@ -53,6 +53,15 @@ async function setupPythonExtractor(logger) { // If CODEQL_PYTHON is not set, no dependencies were installed, so we don't need to do anything return; } + // CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION is the internal environment + // variable used by the python extractor. This is set in init-action.ts only if the + // feature-flag is enabled. + if ((process.env["CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION"] || "") + .length > 0) { + logger.warning("Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11."); + return; + } const scriptsFolder = path.resolve(__dirname, "../python-setup"); let output = ""; const options = { diff --git a/lib/analyze.js.map b/lib/analyze.js.map index cffdd82258..e61a53e446 100644 --- a/lib/analyze.js.map +++ b/lib/analyze.js.map @@ -1 +1 @@ -{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,2CAAyC;AAEzC,yEAA2D;AAC3D,8CAAsB;AACtB,8CAAgC;AAGhC,gEAAkD;AAClD,qCAA6C;AAC7C,4DAA8C;AAE9C,2CAA0D;AAE1D,mDAAuD;AACvD,6CAA+B;AAE/B,MAAa,mBAAoB,SAAQ,KAAK;IAG5C,YAAY,mBAAwC,EAAE,OAAe;QACnE,KAAK,CAAC,OAA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,oBAAoB,CAAC,YAAwC;IAC3E,IAAI,CAAC,YAAY,EAAE;QACjB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAChC,MAAM,IAAI,KAAK,CACb,2EAA2E,OAAO,YAAY,EAAE,CACjG,CAAC;KACH;IAED,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,KAAK,MAAM,EAAE,IAAI,YAAY,EAAE;QAC7B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YACrB,MAAM,CAAC,IAAI,CACT,2CAA2C,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAChE,CAAC;SACH;QACD,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;YAC7C,MAAM,CAAC,IAAI,CACT,qDAAqD,IAAI,CAAC,SAAS,CACjE,EAAE,CACH,EAAE,CACJ,CAAC;SACH;KACF;IAED,IAAI,MAAM,CAAC,MAAM,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAChE;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAjCD,oDAiCC"} \ No newline at end of file diff --git a/lib/feature-flags.js b/lib/feature-flags.js index be9b0e3797..abb8d3045e 100644 --- a/lib/feature-flags.js +++ b/lib/feature-flags.js @@ -40,6 +40,7 @@ var Feature; Feature["ExportDiagnosticsEnabled"] = "export_diagnostics_enabled"; Feature["MlPoweredQueriesEnabled"] = "ml_powered_queries_enabled"; Feature["UploadFailedSarifEnabled"] = "upload_failed_sarif_enabled"; + Feature["DisablePythonDependencyInstallation"] = "disable_python_dependency_installation"; })(Feature = exports.Feature || (exports.Feature = {})); exports.featureConfig = { [Feature.DisableKotlinAnalysisEnabled]: { @@ -72,6 +73,16 @@ exports.featureConfig = { minimumVersion: "2.11.3", defaultValue: true, }, + [Feature.DisablePythonDependencyInstallation]: { + envVar: "CODEQL_ACTION_DISABLE_PYTHON_DEPENDENCY_INSTALLATION", + // Although the python extractor only started supporting not extracting installed + // dependencies in 2.13.1, the init-action can still benefit from not installing + // dependencies no matter what codeql version we are using, so therefore the + // minimumVersion is set to 'undefined'. This means that with an old CodeQL version, + // packages available with current python3 installation might get extracted. + minimumVersion: undefined, + defaultValue: false, + }, }; exports.FEATURE_FLAGS_FILE_NAME = "cached-feature-flags.json"; /** diff --git a/lib/feature-flags.js.map b/lib/feature-flags.js.map index c9e99c5d2a..bb589efdf5 100644 --- a/lib/feature-flags.js.map +++ b/lib/feature-flags.js.map @@ -1 +1 @@ -{"version":3,"file":"feature-flags.js","sourceRoot":"","sources":["../src/feature-flags.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAE7B,+CAAiC;AAEjC,6CAA4C;AAE5C,0DAA4C;AAG5C,6CAA+B;AAE/B,MAAM,mCAAmC,GAAG,yBAAyB,CAAC;AACtE,MAAM,mCAAmC,GAAG,UAAU,CAAC;AAyBvD,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,2DAAgD,CAAA;IAChD,2EAAgE,CAAA;IAChE,kFAAuE,CAAA;IACvE,kEAAuD,CAAA;IACvD,iEAAsD,CAAA;IACtD,mEAAwD,CAAA;AAC1D,CAAC,EAPW,OAAO,GAAP,eAAO,KAAP,eAAO,QAOlB;AAEY,QAAA,aAAa,GAGtB;IACF,CAAC,OAAO,CAAC,4BAA4B,CAAC,EAAE;QACtC,MAAM,EAAE,gCAAgC;QACxC,cAAc,EAAE,SAAS;QACzB,YAAY,EAAE,KAAK;KACpB;IACD,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE;QAC9B,MAAM,EAAE,2BAA2B;QACnC,cAA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Q,GAAG,MAAM,IAAA,yBAAY,GAAE,CAAC,OAAO,CAC3C,8DAA8D,EAC9D;gBACE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;aAC9B,CACF,CAAC;YACF,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC;YAClC,IAAI,CAAC,MAAM,CAAC,KAAK,CACf,wFAAwF;gBACtF,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CACnC,CAAC;YACF,IAAI,CAAC,6BAA6B,GAAG,IAAI,CAAC;YAC1C,OAAO,WAAW,CAAC;SACpB;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG,EAAE;gBAC3C,IAAI,CAAC,MAAM,CAAC,OAAO,CACjB,gGAAgG;oBAC9F,oEAAoE;oBACpE,qFAAqF;oBACrF,kFAAkF,CAAC,EAAE,CACxF,CAAC;gBACF,IAAI,CAAC,6BAA6B,GAAG,KAAK,CAAC;gBAC3C,OAAO,EAAE,CAAC;aACX;iBAAM;gBACL,kFAAkF;gBAClF,8EAA8E;gBAC9E,2FAA2F;gBAC3F,eAAe;gBACf,MAAM,IAAI,KAAK,CACb,sEAAsE,CAAC,EAAE,CAC1E,CAAC;aACH;SACF;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/lib/init-action.js b/lib/init-action.js index 3ae8301697..c96af740ba 100644 --- a/lib/init-action.js +++ b/lib/init-action.js @@ -136,12 +136,17 @@ async function run() { (0, actions_util_1.getOptionalInput)("debug") === "true" || core.isDebug(), (0, actions_util_1.getOptionalInput)("debug-artifact-name") || util_1.DEFAULT_DEBUG_ARTIFACT_NAME, (0, actions_util_1.getOptionalInput)("debug-database-name") || util_1.DEFAULT_DEBUG_DATABASE_NAME, repositoryNwo, (0, actions_util_1.getTemporaryDirectory)(), codeql, (0, util_1.getRequiredEnvParam)("GITHUB_WORKSPACE"), gitHubVersion, apiDetails, features, logger); if (config.languages.includes(languages_1.Language.python) && (0, actions_util_1.getRequiredInput)("setup-python-dependencies") === "true") { - try { - await (0, init_1.installPythonDeps)(codeql, logger); + if (await features.getValue(feature_flags_1.Feature.DisablePythonDependencyInstallation, codeql)) { + logger.info("Skipping python dependency installation"); } - catch (unwrappedError) { - const error = (0, util_1.wrapError)(unwrappedError); - logger.warning(`${error.message} You can call this action with 'setup-python-dependencies: false' to disable this process`); + else { + try { + await (0, init_1.installPythonDeps)(codeql, logger); + } + catch (unwrappedError) { + const error = (0, util_1.wrapError)(unwrappedError); + logger.warning(`${error.message} You can call this action with 'setup-python-dependencies: false' to disable this process`); + } } } } @@ -170,6 +175,10 @@ async function run() { if (await features.getValue(feature_flags_1.Feature.DisableKotlinAnalysisEnabled)) { core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true"); } + // Disable Python dependency extraction if feature flag set + if (await features.getValue(feature_flags_1.Feature.DisablePythonDependencyInstallation, codeql)) { + core.exportVariable("CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION", "true"); + } const sourceRoot = path.resolve((0, util_1.getRequiredEnvParam)("GITHUB_WORKSPACE"), (0, actions_util_1.getOptionalInput)("source-root") || ""); const tracerConfig = await (0, init_1.runInit)(codeql, config, sourceRoot, "Runner.Worker.exe", registriesInput, features, apiDetails, logger); if (tracerConfig !== undefined) { diff --git a/lib/init-action.js.map b/lib/init-action.js.map index 145b06d88e..6777bed5ed 100644 --- a/lib/init-action.js.map +++ b/lib/init-action.js.map @@ -1 +1 @@ -{"version":3,"file":"init-action.js","sourceRoot":"","sources":["../src/init-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,oDAAsC;AAEtC,iDASwB;AACxB,6CAAgD;AAGhD,mDAAoD;AACpD,iCAMgB;AAChB,2CAAuC;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IAAA,gBAAS,EAAC,cAAc,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,yBAAyB,CAC7B,SAAS,EACT,MAAM,EACN,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,MAAM,EACN,KAAK,CACN,CAAC;QACF,OAAO;KACR;IACD,MAAM,yBAAyB,CAC7B,SAAS,EACT,MAAM,EACN,uBAAuB,EACvB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,MAAM,CACP,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB;IAC5B,0DAA0D;IAC1D,MAAM,WAAW,GAAG,IAAA,+BAAgB,EAAC,cAAc,CAAC,CAAC;IACrD,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,WAAW,KAAK,MAAM,CAAC;IAE7D,6FAA6F;IAC7F,IAAI,CAAC,IAAA,qBAAc,GAAE;QAAE,OAAO,KAAK,CAAC;IAEpC,oDAAoD;IACpD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI;QACF,MAAM,GAAG,EAAE,CAAC;KACb;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,uBAAuB,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;KACnE;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"init-action.js","sourceRoot":"","sources":["../src/init-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,oDAAsC;AAEtC,iDASwB;AACxB,6CAAgD;AAGhD,mDAAoD;AACpD,iCAMgB;AAChB,2CAAuC;AACvC,uCAAqD;AACrD,6CAAkD;AAClD,iDAAmD;AACnD,iCAagB;AAChB,yCAA8C;AAgD9C,KAAK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b..f162647601 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -87,6 +87,20 @@ async function setupPythonExtractor(logger: Logger) { return; } + // CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION is the internal environment + // variable used by the python extractor. This is set in init-action.ts only if the + // feature-flag is enabled. + if ( + (process.env["CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION"] || "") + .length > 0 + ) { + logger.warning( + "Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11." + ); + return; + } + const scriptsFolder = path.resolve(__dirname, "../python-setup"); let output = ""; diff --git a/src/feature-flags.ts b/src/feature-flags.ts index a8bcf4f400..e4f76f977c 100644 --- a/src/feature-flags.ts +++ b/src/feature-flags.ts @@ -43,6 +43,7 @@ export enum Feature { ExportDiagnosticsEnabled = "export_diagnostics_enabled", MlPoweredQueriesEnabled = "ml_powered_queries_enabled", UploadFailedSarifEnabled = "upload_failed_sarif_enabled", + DisablePythonDependencyInstallation = "disable_python_dependency_installation", } export const featureConfig: Record< @@ -80,6 +81,16 @@ export const featureConfig: Record< minimumVersion: "2.11.3", defaultValue: true, }, + [Feature.DisablePythonDependencyInstallation]: { + envVar: "CODEQL_ACTION_DISABLE_PYTHON_DEPENDENCY_INSTALLATION", + // Although the python extractor only started supporting not extracting installed + // dependencies in 2.13.1, the init-action can still benefit from not installing + // dependencies no matter what codeql version we are using, so therefore the + // minimumVersion is set to 'undefined'. This means that with an old CodeQL version, + // packages available with current python3 installation might get extracted. + minimumVersion: undefined, + defaultValue: false, + }, }; /** diff --git a/src/init-action.ts b/src/init-action.ts index 3a4e86563c..1e1fd761bd 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -277,13 +277,22 @@ async function run() { config.languages.includes(Language.python) && getRequiredInput("setup-python-dependencies") === "true" ) { - try { - await installPythonDeps(codeql, logger); - } catch (unwrappedError) { - const error = wrapError(unwrappedError); - logger.warning( - `${error.message} You can call this action with 'setup-python-dependencies: false' to disable this process` - ); + if ( + await features.getValue( + Feature.DisablePythonDependencyInstallation, + codeql + ) + ) { + logger.info("Skipping python dependency installation"); + } else { + try { + await installPythonDeps(codeql, logger); + } catch (unwrappedError) { + const error = wrapError(unwrappedError); + logger.warning( + `${error.message} You can call this action with 'setup-python-dependencies: false' to disable this process` + ); + } } } } catch (unwrappedError) { @@ -331,6 +340,19 @@ async function run() { core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true"); } + // Disable Python dependency extraction if feature flag set + if ( + await features.getValue( + Feature.DisablePythonDependencyInstallation, + codeql + ) + ) { + core.exportVariable( + "CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION", + "true" + ); + } + const sourceRoot = path.resolve( getRequiredEnvParam("GITHUB_WORKSPACE"), getOptionalInput("source-root") || "" From eb8a70647a76830f4b460773ed03a5d8dee44fd2 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Thu, 11 May 2023 12:18:29 +0200 Subject: [PATCH 15/35] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 195173a35d..2d9acaf50a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [UNRELEASED] -No user facing changes. +- For Python we will start disabling dependency installation for new users of the codeql-action. This will improve speed of analysis, while only having a very minor impact on results. [#1676](https://github.com/github/codeql-action/pull/1676) ## 2.3.3 - 04 May 2023 From e5fdcd4a8fbfda0ca8c65d32c013969ad181991d Mon Sep 17 00:00:00 2001 From: Shaikhul Islam Date: Thu, 11 May 2023 09:29:25 -0400 Subject: [PATCH 16/35] Apply suggestions from code review Co-authored-by: Henry Mercer --- CHANGELOG.md | 2 +- src/workflow.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b36c3cdddd..7e876fdd68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ No user facing changes. ## 2.3.4 - 10 May 2023 -- Remove some checks from code scanning workflow validation. [#1675](https://github.com/github/codeql-action/pull/1675) +- Remove the requirement for `on.push` and `on.pull_request` to trigger on the same branches. [#1675](https://github.com/github/codeql-action/pull/1675) ## 2.3.3 - 04 May 2023 diff --git a/src/workflow.ts b/src/workflow.ts index c5e9bd785b..0d932cbb05 100644 --- a/src/workflow.ts +++ b/src/workflow.ts @@ -96,7 +96,7 @@ function toCodedErrors(errors: { // code to send back via status report // message to add as a warning annotation to the run export const WorkflowErrors = toCodedErrors({ - MissingPushHook: `Please specify an on.push hook.`, + MissingPushHook: `Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.`, CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`, }); From 903cb278c5c60d0a594ee6080aad6eda8a90764c Mon Sep 17 00:00:00 2001 From: Shaikhul Islam Date: Thu, 11 May 2023 14:16:34 +0000 Subject: [PATCH 17/35] recompile src --- lib/workflow.js | 2 +- lib/workflow.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/workflow.js b/lib/workflow.js index 6e467cc6d4..7645b93e19 100644 --- a/lib/workflow.js +++ b/lib/workflow.js @@ -74,7 +74,7 @@ function toCodedErrors(errors) { // code to send back via status report // message to add as a warning annotation to the run exports.WorkflowErrors = toCodedErrors({ - MissingPushHook: `Please specify an on.push hook.`, + MissingPushHook: `Please specify an on.push hook to analyze and see code scanning alerts from the default branch on the Security tab.`, CheckoutWrongHead: `git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.`, }); function getWorkflowErrors(doc) { diff --git a/lib/workflow.js.map b/lib/workflow.js.map index 13bd1419a4..3c8287ade0 100644 --- a/lib/workflow.js.map +++ b/lib/workflow.js.map @@ -1 +1 @@ -{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,gDAAwB;AAExB,oDAAsC;AACtC,8CAAgC;AAEhC,kDAAoC;AAEpC,iCAA6C;AAqC7C,SAAS,QAAQ,CAAC,CAAU;IAC1B,OAAO,CAAC,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ,CAAC;AAC7C,CAAC;AAED,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC;AAE7C,SAAS,YAAY,CAAC,MAAM;IAC1B,OAAO,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAAC,oCAAoC;AAC5F,CAAC;AAED,SAAS,eAAe,CAAC,KAAK;IAC5B,OAAO,IAAI,MAAM,CACf,IAAI,KAAK;SACN,QAAQ,EAAE;SACV,KAAK,CAAC,YAAY,CAAC;SACnB,MAAM,CAAC,UAAU,GAAG,EAAE,GAAG;QACxB,IAAI,GAAG,KAAK,IAAI,EAAE;YAChB,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACjB;aAAM,IAAI,GAAG,KAAK,GAAG,EAAE;YACtB,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACpB;aAAM,IAAI,GAAG,EAAE;YACd,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;SAC7B;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC;SACL,IAAI,CAAC,EAAE,CAAC,GAAG,CACf,CAAC;AACJ,CAAC;AAED,yEAAyE;AACzE,oEAAoE;AACpE,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UAAU,CACX,CAAC;AACJ,CAAC;AAZD,0DAYC;AAED;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,eAAe,CACpB,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,QAAQ,EACR,UAAU,CACX,CAAC;AACJ,CAAC;AAZD,sDAYC;AAED;;;;;;;;GAQG;AACH,SAAgB,2BAA2B,CACzC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,CACL,eAAe,CACb,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,eAAe,EACf,UAAU,CACX,IAAI,IAAA,0BAAmB,EAAC,kBAAkB,CAAC,CAAC,oEAAoE;KAClH,CAAC;AACJ,CAAC;AAdD,kEAcC"} \ No newline at end of file +{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,gDAAwB;AAExB,oDAAsC;AACtC,8CAAgC;AAEhC,kDAAoC;AAEpC,iCAA6C;AAqC7C,SAAS,QAAQ,CAAC,CAAU;IAC1B,OAAO,CAAC,KAAK,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ,CAAC;AAC7C,CAAC;AAED,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,WAAW,CAAC,CAAC;AAE7C,SAAS,YAAY,CAAC,MAAM;IAC1B,OAAO,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAAC,oCAAoC;AAC5F,CAAC;AAED,SAAS,eAAe,CAAC,KAAK;IAC5B,OAAO,IAAI,MAAM,CACf,IAAI,KAAK;SACN,QAAQ,EAAE;SACV,KAAK,CAAC,YAAY,CAAC;SACnB,MAAM,CAAC,UAAU,GAAG,EAAE,GAAG;QACxB,IAAI,GAAG,KAAK,IAAI,EAAE;YAChB,GAAG,CA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IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,SAAS,oBAAoB;IAC3B,IAAI,IAAA,0BAAmB,EAAC,mBAAmB,CAAC,KAAK,sBAAsB,EAAE;QACvE,OAAO,WAAW,CAAC;KACpB;SAAM;QACL,OAAO,8BAA8B,CAAC;KACvC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,uBAAuB,CACrC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,eAAe,CACpB,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,UAAU,EACV,UAAU,CACX,CAAC;AACJ,CAAC;AAZD,0DAYC;AAED;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,eAAe,CACpB,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,QAAQ,EACR,UAAU,CACX,CAAC;AACJ,CAAC;AAZD,sDAYC;AAED;;;;;;;;GAQG;AACH,SAAgB,2BAA2B,CACzC,QAAkB,EAClB,OAAe,EACf,UAAiD;IAEjD,OAAO,CACL,eAAe,CACb,QAAQ,EACR,OAAO,EACP,oBAAoB,EAAE,EACtB,eAAe,EACf,UAAU,CACX,IAAI,IAAA,0BAAmB,EAAC,kBAAkB,CAAC,CAAC,oEAAoE;KAClH,CAAC;AACJ,CAAC;AAdD,kEAcC"} \ No newline at end of file From a0755a79b6ef492a6442261b408d73df0bbdc51d Mon Sep 17 00:00:00 2001 From: Shaikhul Islam Date: Thu, 11 May 2023 10:22:57 -0400 Subject: [PATCH 18/35] Update CHANGELOG.md Co-authored-by: Henry Mercer --- CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e876fdd68..d93da1d873 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,6 @@ ## [UNRELEASED] -No user facing changes. - -## 2.3.4 - 10 May 2023 - - Remove the requirement for `on.push` and `on.pull_request` to trigger on the same branches. [#1675](https://github.com/github/codeql-action/pull/1675) ## 2.3.3 - 04 May 2023 From b8f39fe0f585010cb8e8b1fbf510586bd0f8b9fe Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Fri, 12 May 2023 09:55:22 +0200 Subject: [PATCH 19/35] Use features properly in `setupPythonExtractor` --- src/analyze-action.ts | 3 ++- src/analyze.ts | 33 +++++++++++++++++---------------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/src/analyze-action.ts b/src/analyze-action.ts index 9d5908d266..09f1a70a66 100644 --- a/src/analyze-action.ts +++ b/src/analyze-action.ts @@ -237,7 +237,8 @@ async function run() { threads, memory, config, - logger + logger, + features ); if (actionsUtil.getRequiredInput("skip-queries") !== "true") { diff --git a/src/analyze.ts b/src/analyze.ts index f162647601..6da8d6d3e9 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -10,7 +10,7 @@ import { DatabaseCreationTimings } from "./actions-util"; import * as analysisPaths from "./analysis-paths"; import { CodeQL, getCodeQL } from "./codeql"; import * as configUtils from "./config-utils"; -import { FeatureEnablement } from "./feature-flags"; +import { FeatureEnablement, Feature } from "./feature-flags"; import { isScannedLanguage, Language } from "./languages"; import { Logger } from "./logging"; import { endTracingForCluster } from "./tracer-config"; @@ -80,23 +80,20 @@ export interface QueriesStatusReport { analyze_failure_language?: string; } -async function setupPythonExtractor(logger: Logger) { +async function setupPythonExtractor(logger: Logger, features: FeatureEnablement, codeql: CodeQL) { const codeqlPython = process.env["CODEQL_PYTHON"]; if (codeqlPython === undefined || codeqlPython.length === 0) { // If CODEQL_PYTHON is not set, no dependencies were installed, so we don't need to do anything return; } - // CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION is the internal environment - // variable used by the python extractor. This is set in init-action.ts only if the - // feature-flag is enabled. - if ( - (process.env["CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION"] || "") - .length > 0 - ) { + if (await features.getValue( + Feature.DisablePythonDependencyInstallation, + codeql + )) { logger.warning( "Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + - "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11." + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11." ); return; } @@ -133,7 +130,8 @@ async function setupPythonExtractor(logger: Logger) { export async function createdDBForScannedLanguages( codeql: CodeQL, config: configUtils.Config, - logger: Logger + logger: Logger, + features: FeatureEnablement ) { // Insert the LGTM_INDEX_X env vars at this point so they are set when // we extract any scanned languages. @@ -147,7 +145,7 @@ export async function createdDBForScannedLanguages( logger.startGroup(`Extracting ${language}`); if (language === Language.python) { - await setupPythonExtractor(logger); + await setupPythonExtractor(logger, features, codeql); } await codeql.extractScannedLanguage(config, language); @@ -179,12 +177,13 @@ async function finalizeDatabaseCreation( config: configUtils.Config, threadsFlag: string, memoryFlag: string, - logger: Logger + logger: Logger, + features: FeatureEnablement ): Promise { const codeql = await getCodeQL(config.codeQLCmd); const extractionStart = performance.now(); - await createdDBForScannedLanguages(codeql, config, logger); + await createdDBForScannedLanguages(codeql, config, logger, features); const extractionTime = performance.now() - extractionStart; const trapImportStart = performance.now(); @@ -488,7 +487,8 @@ export async function runFinalize( threadsFlag: string, memoryFlag: string, config: configUtils.Config, - logger: Logger + logger: Logger, + features: FeatureEnablement ): Promise { try { await del(outputDir, { force: true }); @@ -503,7 +503,8 @@ export async function runFinalize( config, threadsFlag, memoryFlag, - logger + logger, + features ); // WARNING: This does not _really_ end tracing, as the tracer will restore its From c237da1a2f3a5a94d0a40b2d472039038d79d09c Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Fri, 12 May 2023 09:58:30 +0200 Subject: [PATCH 20/35] Fix linting errors --- src/analyze.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/analyze.ts b/src/analyze.ts index 6da8d6d3e9..e39e2d680e 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -80,20 +80,23 @@ export interface QueriesStatusReport { analyze_failure_language?: string; } -async function setupPythonExtractor(logger: Logger, features: FeatureEnablement, codeql: CodeQL) { +async function setupPythonExtractor( + logger: Logger, + features: FeatureEnablement, + codeql: CodeQL +) { const codeqlPython = process.env["CODEQL_PYTHON"]; if (codeqlPython === undefined || codeqlPython.length === 0) { // If CODEQL_PYTHON is not set, no dependencies were installed, so we don't need to do anything return; } - if (await features.getValue( - Feature.DisablePythonDependencyInstallation, - codeql - )) { + if ( + await features.getValue(Feature.DisablePythonDependencyInstallation, codeql) + ) { logger.warning( "Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + - "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11." + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11." ); return; } From cc641561b7f6b3b3f9e2560c080045f8312ca6b7 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Fri, 12 May 2023 09:59:20 +0200 Subject: [PATCH 21/35] Improve python warning message The last dot in `=3.11.` is just slightly confusing, so added single quotes around the environment variable assignments to make it 100% clear --- src/analyze.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyze.ts b/src/analyze.ts index e39e2d680e..eb9a0c43c4 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -96,7 +96,7 @@ async function setupPythonExtractor( ) { logger.warning( "Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + - "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11." + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as 'CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7' or 'CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11'." ); return; } From fce87bbc67a224cfec98fe21343860ef968e1eae Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Fri, 12 May 2023 10:00:31 +0200 Subject: [PATCH 22/35] Generate JS --- lib/analyze-action.js | 2 +- lib/analyze-action.js.map | 2 +- lib/analyze.js | 23 ++++++++++------------- lib/analyze.js.map | 2 +- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/lib/analyze-action.js b/lib/analyze-action.js index d762045835..440a657b34 100644 --- a/lib/analyze-action.js +++ b/lib/analyze-action.js @@ -163,7 +163,7 @@ async function run() { const gitHubVersion = await (0, api_client_1.getGitHubVersion)(); const features = new feature_flags_1.Features(gitHubVersion, repositoryNwo, actionsUtil.getTemporaryDirectory(), logger); await runAutobuildIfLegacyGoWorkflow(config, logger); - dbCreationTimings = await (0, analyze_1.runFinalize)(outputDir, threads, memory, config, logger); + dbCreationTimings = await (0, analyze_1.runFinalize)(outputDir, threads, memory, config, logger, features); if (actionsUtil.getRequiredInput("skip-queries") !== "true") { runStats = await (0, analyze_1.runQueries)(outputDir, memory, util.getAddSnippetsFlag(actionsUtil.getRequiredInput("add-snippets")), threads, actionsUtil.getOptionalInput("category"), config, logger, features); } diff --git a/lib/analyze-action.js.map b/lib/analyze-action.js.map index 6cc3218277..d45ea6bb58 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,gDAAwB;AACxB,2CAAyC;AAEzC,oDAAsC;AAEtC,4DAA8C;AAE9C,uCAOmB;AACnB,6CAA+D;AAC/D,2CAA2C;AAC3C,qCAAqC;AACrC,iDAAmD;AACnD,uDAAoD;AACpD,mDAA2C;AAC3C,2CAAuC;AACvC,uCAAqD;AACrD,6CAAkD;AAClD,6DAG8B;AAC9B,iDAAqE;AACrE,yDAA2C;AAE3C,6CAA+B;AAC/B,iCAAoD;AAkB7C,KAAK,UAAU,gBAAgB,CACpC,SAAe,EACf,MAA0B,EAC1B,KAAuC,EACvC,KAAwB,EACxB,mBAAuC,EACvC,iBAAsD,EACtD,mBAA4B,EAC5B,MAAc;IAEd,MAAM,MAAM,GAAG,WAAW,CAAC,gBAAgB,CACzC,KAAK,EACL,KAAK,EAAE,wBAAwB,CAChC,CAAC;IACF,MAAM,gBAAgB,GAAG,MAAM,WAAW,CAAC,sBAAsB,CAC/D,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,KAAK,CACb,CAAC;IACF,MAAM,YAAY,GAAuB;QACvC,GAAG,gBAAgB;QACnB,GAAG,CAAC,MAAM;YACR,CAAC,CAAC;gBACE,6BAA6B,EAC3B,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC;aAC3C;YACH,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,IAAI,EAAE,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C,OAAO,EAAE,CAAC,CAAC;KACtE;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,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,gDAAwB;AACxB,2CAAyC;AAEzC,oDAAsC;AAEtC,4DAA8C;AAE9C,uCAOmB;AACnB,6CAA+D;AAC/D,2CAA2C;AAC3C,qCAAqC;AACrC,iDAAmD;AACnD,uDAAoD;AACpD,mDAA2C;AAC3C,2CAAuC;AACvC,uCAAqD;AACrD,6CAAkD;AAClD,6DAG8B;AAC9B,iDAAqE;AACrE,yDAA2C;AAE3C,6CAA+B;AAC/B,iCAAoD;AAkB7C,KAAK,UAAU,gBAAgB,CACpC,SAAe,EACf,MAA0B,EAC1B,KAAuC,EACvC,KAAwB,EACxB,mBAAuC,EACvC,iBAAsD,EACtD,mBAA4B,EAC5B,MAAc;IAEd,MAAM,MAAM,GAAG,WAAW,CAAC,gBAAgB,CACzC,KAAK,EACL,KAAK,EAAE,wBAAwB,CAChC,CAAC;IACF,MAAM,gBAAgB,GAAG,MAAM,WAAW,CAAC,sBAAsB,CAC/D,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,KAAK,CACb,CAAC;IACF,MAAM,YAAY,GAAuB;QACvC,GAAG,gBAAgB;QACnB,GAAG,CAAC,MAAM;YACR,CAAC,CAAC;gBACE,6BAA6B,EAC3B,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC;aAC3C;YACH,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC;QAChB,GAAG,CAAC,iBAAiB,IAAI,EAAE,CAAC;KAC7B,CAAC;IACF,IAAI,MAAM,IAAI,mBAAmB,EAAE;QACjC,MAAM,2BA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CAAC"} \ No newline at end of file diff --git a/lib/analyze.js b/lib/analyze.js index 1cac7d0f9d..b25d889bb2 100644 --- a/lib/analyze.js +++ b/lib/analyze.js @@ -36,6 +36,7 @@ const yaml = __importStar(require("js-yaml")); const analysisPaths = __importStar(require("./analysis-paths")); const codeql_1 = require("./codeql"); const configUtils = __importStar(require("./config-utils")); +const feature_flags_1 = require("./feature-flags"); const languages_1 = require("./languages"); const tracer_config_1 = require("./tracer-config"); const util = __importStar(require("./util")); @@ -47,19 +48,15 @@ class CodeQLAnalysisError extends Error { } } exports.CodeQLAnalysisError = CodeQLAnalysisError; -async function setupPythonExtractor(logger) { +async function setupPythonExtractor(logger, features, codeql) { const codeqlPython = process.env["CODEQL_PYTHON"]; if (codeqlPython === undefined || codeqlPython.length === 0) { // If CODEQL_PYTHON is not set, no dependencies were installed, so we don't need to do anything return; } - // CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION is the internal environment - // variable used by the python extractor. This is set in init-action.ts only if the - // feature-flag is enabled. - if ((process.env["CODEQL_EXTRACTOR_PYTHON_DISABLE_LIBRARY_EXTRACTION"] || "") - .length > 0) { + if (await features.getValue(feature_flags_1.Feature.DisablePythonDependencyInstallation, codeql)) { logger.warning("Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + - "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7 or CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11."); + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as 'CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7' or 'CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11'."); return; } const scriptsFolder = path.resolve(__dirname, "../python-setup"); @@ -79,7 +76,7 @@ async function setupPythonExtractor(logger) { logger.info(`Setting LGTM_PYTHON_SETUP_VERSION=${output}`); process.env["LGTM_PYTHON_SETUP_VERSION"] = output; } -async function createdDBForScannedLanguages(codeql, config, logger) { +async function createdDBForScannedLanguages(codeql, config, logger, features) { // Insert the LGTM_INDEX_X env vars at this point so they are set when // we extract any scanned languages. analysisPaths.includeAndExcludeAnalysisPaths(config); @@ -88,7 +85,7 @@ async function createdDBForScannedLanguages(codeql, config, logger) { !dbIsFinalized(config, language, logger)) { logger.startGroup(`Extracting ${language}`); if (language === languages_1.Language.python) { - await setupPythonExtractor(logger); + await setupPythonExtractor(logger, features, codeql); } await codeql.extractScannedLanguage(config, language); logger.endGroup(); @@ -108,10 +105,10 @@ function dbIsFinalized(config, language, logger) { } } exports.dbIsFinalized = dbIsFinalized; -async function finalizeDatabaseCreation(config, threadsFlag, memoryFlag, logger) { +async function finalizeDatabaseCreation(config, threadsFlag, memoryFlag, logger, features) { const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd); const extractionStart = perf_hooks_1.performance.now(); - await createdDBForScannedLanguages(codeql, config, logger); + await createdDBForScannedLanguages(codeql, config, logger, features); const extractionTime = perf_hooks_1.performance.now() - extractionStart; const trapImportStart = perf_hooks_1.performance.now(); for (const language of config.languages) { @@ -280,7 +277,7 @@ function createQuerySuiteContents(queries, queryFilters) { return yaml.dump(queries.map((q) => ({ query: q })).concat(queryFilters)); } exports.createQuerySuiteContents = createQuerySuiteContents; -async function runFinalize(outputDir, threadsFlag, memoryFlag, config, logger) { +async function runFinalize(outputDir, threadsFlag, memoryFlag, config, logger, features) { try { await (0, del_1.default)(outputDir, { force: true }); } @@ -290,7 +287,7 @@ async function runFinalize(outputDir, threadsFlag, memoryFlag, config, logger) { } } await fs.promises.mkdir(outputDir, { recursive: true }); - const timings = await finalizeDatabaseCreation(config, threadsFlag, memoryFlag, logger); + const timings = await finalizeDatabaseCreation(config, threadsFlag, memoryFlag, logger, features); // WARNING: This does not _really_ end tracing, as the tracer will restore its // critical environment variables and it'll still be active for all processes // launched from this build step. diff --git a/lib/analyze.js.map b/lib/analyze.js.map index e61a53e446..91730532d1 100644 --- a/lib/analyze.js.map +++ b/lib/analyze.js.map @@ -1 +1 @@ -{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,2CAAyC;AAEzC,yEAA2D;AAC3D,8CAAsB;AACtB,8CAAgC;AAGhC,gEAAkD;AAClD,qCAA6C;AAC7C,4DAA8C;AAE9C,2CAA0D;AAE1D,mDAAuD;AACvD,6CAA+B;AAE/B,MAAa,mBAAoB,SAAQ,KAAK;IAG5C,YAAY,mBAAwC,EAAE,OAAe;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACjD,CAAC;CACF;AATD,kDASC;AAuDD,KAAK,UAAU,oBAAoB,CAAC,MAAc;IAChD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IAClD,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3D,+FAA+F;QAC/F,OAAO;KACR;IAED,iFAAiF;IACjF,mFAAmF;IACnF,2BAA2B;IAC3B,IACE,CAAC,OAAO,CAAC,GAAG,CAAC,oDAAoD,CAAC,IAAI,EAAE,CAAC;SACtE,MAAM,GAAG,CAAC,EACb;QACA,MAAM,CAAC,OAAO,CACZ,gHAAgH;YAC9G,+OAA+O,CAClP,CAAC;QACF,OAAO;KACR;IAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAEjE,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,MAAM,OAAO,GAAG;Q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,MAAM,CAAC,IAAI,CACT,2CAA2C,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAChE,CAAC;SACH;QACD,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;YAC7C,MAAM,CAAC,IAAI,CACT,qDAAqD,IAAI,CAAC,SAAS,CACjE,EAAE,CACH,EAAE,CACJ,CAAC;SACH;KACF;IAED,IAAI,MAAM,CAAC,MAAM,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,0BAA0B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KAChE;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAjCD,oDAiCC"} \ No newline at end of file From cf58ef44808253d2c70d10bd992f7051720d99ce Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Mon, 15 May 2023 12:05:03 +0200 Subject: [PATCH 23/35] Update wording for CODEQL_PYTHON warning Co-authored-by: Henry Mercer --- src/analyze.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyze.ts b/src/analyze.ts index eb9a0c43c4..9127b675d6 100644 --- a/src/analyze.ts +++ b/src/analyze.ts @@ -95,7 +95,7 @@ async function setupPythonExtractor( await features.getValue(Feature.DisablePythonDependencyInstallation, codeql) ) { logger.warning( - "Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + + "We recommend that you remove the CODEQL_PYTHON environment variable from your workflow. This environment variable was originally used to specify a Python executable that included the dependencies of your Python code, however Python analysis no longer uses these dependencies." + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as 'CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7' or 'CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11'." ); return; From e1cca2565c44f917ad2191c72786b44349c71f18 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Mon, 15 May 2023 12:05:50 +0200 Subject: [PATCH 24/35] Generate JS --- lib/analyze.js | 2 +- lib/analyze.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/analyze.js b/lib/analyze.js index b25d889bb2..f8712fca72 100644 --- a/lib/analyze.js +++ b/lib/analyze.js @@ -55,7 +55,7 @@ async function setupPythonExtractor(logger, features, codeql) { return; } if (await features.getValue(feature_flags_1.Feature.DisablePythonDependencyInstallation, codeql)) { - logger.warning("Library extraction is disabled now. Please remove your logic that sets the CODEQL_PYTHON environment variable." + + logger.warning("We recommend that you remove the CODEQL_PYTHON environment variable from your workflow. This environment variable was originally used to specify a Python executable that included the dependencies of your Python code, however Python analysis no longer uses these dependencies." + "\nIf you used CODEQL_PYTHON to force the version of Python to analyze as, please use CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION instead, such as 'CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=2.7' or 'CODEQL_EXTRACTOR_PYTHON_ANALYSIS_VERSION=3.11'."); return; } diff --git a/lib/analyze.js.map b/lib/analyze.js.map index 91730532d1..c212bb5857 100644 --- a/lib/analyze.js.map +++ b/lib/analyze.js.map @@ -1 +1 @@ -{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,2CAA6B;AAC7B,2CAAyC;AAEzC,yEAA2D;AAC3D,8CAAsB;AACtB,8CAAgC;AAGhC,gEAAkD;AAClD,qCAA6C;AAC7C,4DAA8C;AAC9C,mDAA6D;AAC7D,2CAA0D;AAE1D,mDAAuD;AACvD,6CAA+B;AAE/B,MAAa,mBAAoB,SAAQ,KAAK;IAG5C,YAAY,mBAAwC,EAAE,OAAe;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,IAAI,GAAG,qBAAqB,CA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824a1289 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Mon, 15 May 2023 12:38:10 +0200 Subject: [PATCH 25/35] Update CHANGELOG.md Co-authored-by: Henry Mercer --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41ac50b67e..41e2b93e8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [UNRELEASED] -- For Python we will start disabling dependency installation for new users of the codeql-action. This will improve speed of analysis, while only having a very minor impact on results. [#1676](https://github.com/github/codeql-action/pull/1676) +- We are rolling out a feature in May 2023 that will disable Python dependency installation for new users of the CodeQL Action. This improves the speed of analysis while having only a very minor impact on results. [#1676](https://github.com/github/codeql-action/pull/1676) - Remove the requirement for `on.push` and `on.pull_request` to trigger on the same branches. [#1675](https://github.com/github/codeql-action/pull/1675) ## 2.3.3 - 04 May 2023 From e422b64793fb99bc185a2e86c6fd0ddac6bd0056 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Tue, 16 May 2023 11:18:16 +0100 Subject: [PATCH 26/35] Use `resolve extractor` when finding autobuild scripts --- lib/codeql.js | 53 ++++++++++++++++++------------------ lib/codeql.js.map | 2 +- src/codeql.ts | 69 +++++++++++++++++++++++------------------------ 3 files changed, 60 insertions(+), 64 deletions(-) diff --git a/lib/codeql.js b/lib/codeql.js index 2cbabf33ee..718a01850d 100644 --- a/lib/codeql.js +++ b/lib/codeql.js @@ -174,6 +174,7 @@ function setCodeQL(partialCodeql) { databasePrintBaseline: resolveFunction(partialCodeql, "databasePrintBaseline"), databaseExportDiagnostics: resolveFunction(partialCodeql, "databaseExportDiagnostics"), diagnosticsExport: resolveFunction(partialCodeql, "diagnosticsExport"), + resolveExtractor: resolveFunction(partialCodeql, "resolveExtractor"), }; return cachedCodeQL; } @@ -269,10 +270,7 @@ async function getCodeQLForCmd(cmd, checkVersion) { ], { stdin: externalRepositoryToken }); }, async runAutobuild(language) { - const cmdName = process.platform === "win32" ? "autobuild.cmd" : "autobuild.sh"; - // The autobuilder for Swift is located in the experimental/ directory. - const possibleExperimentalDir = language === languages_1.Language.swift ? "experimental" : ""; - const autobuildCmd = path.join(path.dirname(cmd), possibleExperimentalDir, language, "tools", cmdName); + const autobuildCmd = path.join(await this.resolveExtractor(language), "tools", process.platform === "win32" ? "autobuild.cmd" : "autobuild.sh"); // Update JAVA_TOOL_OPTIONS to contain '-Dhttp.keepAlive=false' // This is because of an issue with Azure pipelines timing out connections after 4 minutes // and Maven not properly handling closed connections @@ -301,31 +299,9 @@ async function getCodeQLForCmd(cmd, checkVersion) { }, async extractScannedLanguage(config, language) { const databasePath = util.getCodeQLDatabasePath(config, language); - // Get extractor location - // - // Request it using `format=json` so we don't need to strip the trailing new line generated by - // the CLI. - let extractorPath = ""; - await new toolrunner.ToolRunner(cmd, [ - "resolve", - "extractor", - "--format=json", - `--language=${language}`, - ...getExtraOptionsFromEnv(["resolve", "extractor"]), - ], { - silent: true, - listeners: { - stdout: (data) => { - extractorPath += data.toString(); - }, - stderr: (data) => { - process.stderr.write(data); - }, - }, - }).exec(); // Set trace command const ext = process.platform === "win32" ? ".cmd" : ".sh"; - const traceCommand = path.resolve(JSON.parse(extractorPath), "tools", `autobuild${ext}`); + const traceCommand = path.resolve(await this.resolveExtractor(language), "tools", `autobuild${ext}`); // Run trace command await (0, toolrunner_error_catcher_1.toolrunnerErrorCatcher)(cmd, [ "database", @@ -581,6 +557,29 @@ async function getCodeQLForCmd(cmd, checkVersion) { } await new toolrunner.ToolRunner(cmd, args).exec(); }, + async resolveExtractor(language) { + // Request it using `format=json` so we don't need to strip the trailing new line generated by + // the CLI. + let extractorPath = ""; + await new toolrunner.ToolRunner(cmd, [ + "resolve", + "extractor", + "--format=json", + `--language=${language}`, + ...getExtraOptionsFromEnv(["resolve", "extractor"]), + ], { + silent: true, + listeners: { + stdout: (data) => { + extractorPath += data.toString(); + }, + stderr: (data) => { + process.stderr.write(data); + }, + }, + }).exec(); + return JSON.parse(extractorPath); + }, }; // To ensure that status reports include the CodeQL CLI version wherever // possible, we want to call getVersion(), which populates the version value diff --git a/lib/codeql.js.map b/lib/codeql.js.map index 0e3dff0131..370002fc67 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,uCAAyB;AACzB,2CAA6B;AAE7B,yEAA2D;AAC3D,8CAAgC;AAEhC,iDAAkD;AAElD,iDAA4E;AAC5E,mDAAgD;AAChD,mDAIyB;AAEzB,2CAAyD;AAEzD,4DAA8C;AAC9C,yEAAoE;AACpE,iDAGwB;AACxB,6CAA+B;AAC/B,iCAAmC;AAuBnC,MAAa,sBAAuB,SAAQ,KAAK;IAC/C,YACE,GAAW,EACX,IAAc,EACd,QAAgB,EAChB,KAAa,EACN,MAAc;QAErB,KAAK,CACH,oBAAoB,GAAG,mBAAmB,IAAI;kBAClC,QAAQ;QAClB,KAAK,EAAE,CACV,CAAC;QANK,WAAM,GAAN,MAAM,CAAQ;IAOvB,CAAC;CACF;AAdD,wDAcC;AAkLD;;;GAGG;AACH,IAAI,YAAY,GAAuB,SAAS,CAAC;AAEjD;;;;;;;GAOG;AACH,MAAM,sBAAsB,GAAG,OAAO,CAAC;AAEvC;;;;GAIG;AACH,MAAM,gCAAgC,GAAG,OAAO,CAAC;AACjD,MAAM,gCAAgC,GAAG,QAAQ,CAAC;AAClD,MAAM,2CAA2C,GAAG,QAAQ,CAAC;AAChD,QAAA,iCAAiC,GAAG,QAAQ,CAAC;AAC1D,MAAM,wCAAwC,GAAG,QAAQ,CAAC;AAE1D;;;;GAIG;AACU,QAAA,yCAAyC,GAAG,OAAO,CAAC;AAEjE;;;GAGG;AACU,QAAA,uCAAuC,GAAG,QAAQ,CAAC;AAEhE;;GAEG;AACU,QAAA,0CAA0C,GAAG,QAAQ,C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AAM,sBAAsB,GAAG,IAAA,iDAAkC,EAAC,MAAM,CAAC,CAAC;IAC1E,IACE,EAAE,CAAC,UAAU,CAAC,sBAAsB,CAAC;QACrC,CAAC,MAAM,QAAQ,CAAC,QAAQ,CAAC,uBAAO,CAAC,+BAA+B,EAAE,MAAM,CAAC,CAAC,EAC1E;QACA,OAAO,CAAC,6BAA6B,EAAE,sBAAsB,CAAC,CAAC;KAChE;IACD,OAAO,EAAE,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/src/codeql.ts b/src/codeql.ts index 9238765500..de4302d857 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -196,6 +196,8 @@ export interface CodeQL { config: Config, features: FeatureEnablement ): Promise; + /** Get the location of an extractor for the specified language. */ + resolveExtractor(language: Language): Promise; } export interface ResolveLanguagesOutput { @@ -418,6 +420,7 @@ export function setCodeQL(partialCodeql: Partial): CodeQL { "databaseExportDiagnostics" ), diagnosticsExport: resolveFunction(partialCodeql, "diagnosticsExport"), + resolveExtractor: resolveFunction(partialCodeql, "resolveExtractor"), }; return cachedCodeQL; } @@ -547,17 +550,10 @@ export async function getCodeQLForCmd( ); }, async runAutobuild(language: Language) { - const cmdName = - process.platform === "win32" ? "autobuild.cmd" : "autobuild.sh"; - // The autobuilder for Swift is located in the experimental/ directory. - const possibleExperimentalDir = - language === Language.swift ? "experimental" : ""; const autobuildCmd = path.join( - path.dirname(cmd), - possibleExperimentalDir, - language, + await this.resolveExtractor(language), "tools", - cmdName + process.platform === "win32" ? "autobuild.cmd" : "autobuild.sh" ); // Update JAVA_TOOL_OPTIONS to contain '-Dhttp.keepAlive=false' @@ -590,37 +586,11 @@ export async function getCodeQLForCmd( }, async extractScannedLanguage(config: Config, language: Language) { const databasePath = util.getCodeQLDatabasePath(config, language); - // Get extractor location - // - // Request it using `format=json` so we don't need to strip the trailing new line generated by - // the CLI. - let extractorPath = ""; - await new toolrunner.ToolRunner( - cmd, - [ - "resolve", - "extractor", - "--format=json", - `--language=${language}`, - ...getExtraOptionsFromEnv(["resolve", "extractor"]), - ], - { - silent: true, - listeners: { - stdout: (data) => { - extractorPath += data.toString(); - }, - stderr: (data) => { - process.stderr.write(data); - }, - }, - } - ).exec(); // Set trace command const ext = process.platform === "win32" ? ".cmd" : ".sh"; const traceCommand = path.resolve( - JSON.parse(extractorPath) as string, + await this.resolveExtractor(language), "tools", `autobuild${ext}` ); @@ -954,6 +924,33 @@ export async function getCodeQLForCmd( } await new toolrunner.ToolRunner(cmd, args).exec(); }, + async resolveExtractor(language: Language): Promise { + // Request it using `format=json` so we don't need to strip the trailing new line generated by + // the CLI. + let extractorPath = ""; + await new toolrunner.ToolRunner( + cmd, + [ + "resolve", + "extractor", + "--format=json", + `--language=${language}`, + ...getExtraOptionsFromEnv(["resolve", "extractor"]), + ], + { + silent: true, + listeners: { + stdout: (data) => { + extractorPath += data.toString(); + }, + stderr: (data) => { + process.stderr.write(data); + }, + }, + } + ).exec(); + return JSON.parse(extractorPath); + }, }; // To ensure that status reports include the CodeQL CLI version wherever // possible, we want to call getVersion(), which populates the version value From 2bf10dc4b9b3a9396c621410922903c94d040f02 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Tue, 16 May 2023 14:47:12 +0100 Subject: [PATCH 27/35] Extract semantic CLI version from URL when requesting specific tools --- lib/codeql.test.js | 80 ++++++++----------------- lib/codeql.test.js.map | 2 +- lib/setup-codeql.js | 7 +++ lib/setup-codeql.js.map | 2 +- lib/setup-codeql.test.js | 10 ++++ lib/setup-codeql.test.js.map | 2 +- lib/testing-utils.js | 41 ++++++++++++- lib/testing-utils.js.map | 2 +- src/codeql.test.ts | 110 +++++++++-------------------------- src/setup-codeql.test.ts | 33 ++++++++++- src/setup-codeql.ts | 8 +++ src/testing-utils.ts | 69 +++++++++++++++++++++- 12 files changed, 217 insertions(+), 149 deletions(-) diff --git a/lib/codeql.test.js b/lib/codeql.test.js index 2607541f59..067cfe7cd8 100644 --- a/lib/codeql.test.js +++ b/lib/codeql.test.js @@ -49,20 +49,11 @@ const testing_utils_1 = require("./testing-utils"); const util = __importStar(require("./util")); const util_1 = require("./util"); (0, testing_utils_1.setupTests)(ava_1.default); -const sampleApiDetails = { - auth: "token", - url: "https://github.com", - apiURL: "https://api.github.com", -}; const sampleGHAEApiDetails = { auth: "token", url: "https://example.githubenterprise.com", apiURL: "https://example.githubenterprise.com/api/v3", }; -const SAMPLE_DEFAULT_CLI_VERSION = { - cliVersion: "2.0.0", - variant: util.GitHubVariant.DOTCOM, -}; let stubConfig; ava_1.default.beforeEach(() => { (0, util_1.initializeEnvironment)("1.2.3"); @@ -91,34 +82,13 @@ ava_1.default.beforeEach(() => { trapCacheDownloadTime: 0, }; }); -/** - * Mocks the API for downloading the bundle tagged `tagName`. - * - * @returns the download URL for the bundle. This can be passed to the tools parameter of - * `codeql.setupCodeQL`. - */ -function mockDownloadApi({ apiDetails = sampleApiDetails, isPinned, repo = "github/codeql-action", platformSpecific = true, tagName, }) { - const platform = process.platform === "win32" - ? "win64" - : process.platform === "linux" - ? "linux64" - : "osx64"; - const baseUrl = apiDetails?.url ?? "https://example.com"; - const relativeUrl = apiDetails - ? `/${repo}/releases/download/${tagName}/codeql-bundle${platformSpecific ? `-${platform}` : ""}.tar.gz` - : `/download/${tagName}/codeql-bundle.tar.gz`; - (0, nock_1.default)(baseUrl) - .get(relativeUrl) - .replyWithFile(200, path_1.default.join(__dirname, `/../src/testdata/codeql-bundle${isPinned ? "-pinned" : ""}.tar.gz`)); - return `${baseUrl}${relativeUrl}`; -} -async function installIntoToolcache({ apiDetails = sampleApiDetails, cliVersion, isPinned, tagName, tmpDir, }) { - const url = mockDownloadApi({ apiDetails, isPinned, tagName }); +async function installIntoToolcache({ apiDetails = testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, cliVersion, isPinned, tagName, tmpDir, }) { + const url = (0, testing_utils_1.mockBundleDownloadApi)({ apiDetails, isPinned, tagName }); await codeql.setupCodeQL(cliVersion !== undefined ? undefined : url, apiDetails, tmpDir, util.GitHubVariant.GHES, cliVersion !== undefined ? { cliVersion, tagName, variant: util.GitHubVariant.GHES } - : SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); + : testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); } -function mockReleaseApi({ apiDetails = sampleApiDetails, assetNames, tagName, }) { +function mockReleaseApi({ apiDetails = testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, assetNames, tagName, }) { return (0, nock_1.default)(apiDetails.apiURL) .get(`/repos/github/codeql-action/releases/tags/${tagName}`) .reply(200, { @@ -149,11 +119,11 @@ function mockApiDetails(apiDetails) { const versions = ["20200601", "20200610"]; for (let i = 0; i < versions.length; i++) { const version = versions[i]; - const url = mockDownloadApi({ + const url = (0, testing_utils_1.mockBundleDownloadApi)({ tagName: `codeql-bundle-${version}`, isPinned: false, }); - const result = await codeql.setupCodeQL(url, sampleApiDetails, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.assert(toolcache.find("CodeQL", `0.0.0-${version}`)); t.is(result.toolsVersion, `0.0.0-${version}`); t.is(result.toolsSource, init_1.ToolsSource.Download); @@ -170,10 +140,10 @@ function mockApiDetails(apiDetails) { isPinned: true, tmpDir, }); - const url = mockDownloadApi({ + const url = (0, testing_utils_1.mockBundleDownloadApi)({ tagName: "codeql-bundle-20200610", }); - const result = await codeql.setupCodeQL(url, sampleApiDetails, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.assert(toolcache.find("CodeQL", "0.0.0-20200610")); t.deepEqual(result.toolsVersion, "0.0.0-20200610"); t.is(result.toolsSource, init_1.ToolsSource.Download); @@ -198,16 +168,16 @@ for (const { cliVersion, expectedToolcacheVersion, } of EXPLICITLY_REQUESTED_BUN (0, ava_1.default)(`caches an explicitly requested bundle containing CLI ${cliVersion} as ${expectedToolcacheVersion}`, async (t) => { await util.withTmpDir(async (tmpDir) => { (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); - mockApiDetails(sampleApiDetails); + mockApiDetails(testing_utils_1.SAMPLE_DOTCOM_API_DETAILS); sinon.stub(actionsUtil, "isRunningLocalAction").returns(true); const releaseApiMock = mockReleaseApi({ assetNames: [`cli-version-${cliVersion}.txt`], tagName: "codeql-bundle-20200610", }); - const url = mockDownloadApi({ + const url = (0, testing_utils_1.mockBundleDownloadApi)({ tagName: "codeql-bundle-20200610", }); - const result = await codeql.setupCodeQL(url, sampleApiDetails, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL(url, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.assert(releaseApiMock.isDone(), "Releases API should have been called"); t.assert(toolcache.find("CodeQL", expectedToolcacheVersion)); t.deepEqual(result.toolsVersion, cliVersion); @@ -220,19 +190,19 @@ for (const { githubReleases, toolcacheVersion } of [ // Test that we use the tools from the toolcache when `SAMPLE_DEFAULT_CLI_VERSION` is requested // and `SAMPLE_DEFAULT_CLI_VERSION-` is in the toolcache. { - toolcacheVersion: SAMPLE_DEFAULT_CLI_VERSION.cliVersion, + toolcacheVersion: testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION.cliVersion, }, { githubReleases: { - "codeql-bundle-20230101": `cli-version-${SAMPLE_DEFAULT_CLI_VERSION.cliVersion}.txt`, + "codeql-bundle-20230101": `cli-version-${testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION.cliVersion}.txt`, }, toolcacheVersion: "0.0.0-20230101", }, { - toolcacheVersion: `${SAMPLE_DEFAULT_CLI_VERSION.cliVersion}-20230101`, + toolcacheVersion: `${testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION.cliVersion}-20230101`, }, ]) { - (0, ava_1.default)(`uses tools from toolcache when ${SAMPLE_DEFAULT_CLI_VERSION.cliVersion} is requested and ` + + (0, ava_1.default)(`uses tools from toolcache when ${testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION.cliVersion} is requested and ` + `${toolcacheVersion} is installed`, async (t) => { await util.withTmpDir(async (tmpDir) => { (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); @@ -256,8 +226,8 @@ for (const { githubReleases, toolcacheVersion } of [ }))), })); } - const result = await codeql.setupCodeQL(undefined, sampleApiDetails, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); - t.is(result.toolsVersion, SAMPLE_DEFAULT_CLI_VERSION.cliVersion); + const result = await codeql.setupCodeQL(undefined, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); + t.is(result.toolsVersion, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION.cliVersion); t.is(result.toolsSource, init_1.ToolsSource.Toolcache); t.is(result.toolsDownloadDurationMs, undefined); }); @@ -272,7 +242,7 @@ for (const variant of [util.GitHubVariant.GHAE, util.GitHubVariant.GHES]) { isPinned: true, tmpDir, }); - const result = await codeql.setupCodeQL(undefined, sampleApiDetails, tmpDir, variant, { + const result = await codeql.setupCodeQL(undefined, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, variant, { cliVersion: defaults.cliVersion, tagName: defaults.bundleVersion, variant, @@ -292,10 +262,10 @@ for (const variant of [util.GitHubVariant.GHAE, util.GitHubVariant.GHES]) { isPinned: false, tmpDir, }); - mockDownloadApi({ + (0, testing_utils_1.mockBundleDownloadApi)({ tagName: defaults.bundleVersion, }); - const result = await codeql.setupCodeQL(undefined, sampleApiDetails, tmpDir, variant, { + const result = await codeql.setupCodeQL(undefined, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, variant, { cliVersion: defaults.cliVersion, tagName: defaults.bundleVersion, variant, @@ -316,10 +286,10 @@ for (const variant of [util.GitHubVariant.GHAE, util.GitHubVariant.GHES]) { isPinned: true, tmpDir, }); - mockDownloadApi({ + (0, testing_utils_1.mockBundleDownloadApi)({ tagName: defaults.bundleVersion, }); - const result = await codeql.setupCodeQL("latest", sampleApiDetails, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL("latest", testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.deepEqual(result.toolsVersion, defaults.cliVersion); t.is(result.toolsSource, init_1.ToolsSource.Download); t.assert(Number.isInteger(result.toolsDownloadDurationMs)); @@ -375,18 +345,18 @@ for (const isBundleVersionInUrl of [true, false]) { (0, ava_1.default)("bundle URL from another repo is cached as 0.0.0-bundleVersion", async (t) => { await util.withTmpDir(async (tmpDir) => { (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); - mockApiDetails(sampleApiDetails); + mockApiDetails(testing_utils_1.SAMPLE_DOTCOM_API_DETAILS); sinon.stub(actionsUtil, "isRunningLocalAction").returns(true); const releasesApiMock = mockReleaseApi({ assetNames: ["cli-version-2.12.2.txt"], tagName: "codeql-bundle-20230203", }); - mockDownloadApi({ + (0, testing_utils_1.mockBundleDownloadApi)({ repo: "codeql-testing/codeql-cli-nightlies", platformSpecific: false, tagName: "codeql-bundle-20230203", }); - const result = await codeql.setupCodeQL("https://github.com/codeql-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20230203/codeql-bundle.tar.gz", sampleApiDetails, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); + const result = await codeql.setupCodeQL("https://github.com/codeql-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20230203/codeql-bundle.tar.gz", testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, (0, logging_1.getRunnerLogger)(true), false); t.is(result.toolsVersion, "0.0.0-20230203"); t.is(result.toolsSource, init_1.ToolsSource.Download); t.true(Number.isInteger(result.toolsDownloadDurationMs)); diff --git a/lib/codeql.test.js.map b/lib/codeql.test.js.map index 7648c98722..f1d99e307e 100644 --- a/lib/codeql.test.js.map +++ b/lib/codeql.test.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.test.js","sourceRoot":"","sources":["../src/codeql.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,gDAAwB;AAExB,yEAA2D;AAC3D,+DAAiD;AACjD,kEAAoD;AACpD,8CAA6C;AAC7C,8CAAsB;AACtB,8CAAgC;AAChC,gDAAwB;AACxB,6CAA+B;AAE/B,4DAA8C;AAC9C,kDAAoC;AAEpC,iDAAmC;AAEnC,0DAA4C;AAC5C,mDAIyB;AACzB,iCAAqC;AACrC,2CAAuC;AACvC,uCAA4C;AAC5C,mDAA+E;AAC/E,6CAA+B;AAC/B,iCAA+C;AAE/C,IAAA,0BAAU,EAAC,aAAI,CAAC,CAAC;AAEjB,MAAM,gBAAgB,GAA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AU,CAAC,CAAC;IACzE,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClC,MAAM,qBAAqB,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACnE,qBAAqB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAChD,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AATD,8DASC"} \ No newline at end of file diff --git a/lib/setup-codeql.js b/lib/setup-codeql.js index 8703e2f6ef..4372125c87 100644 --- a/lib/setup-codeql.js +++ b/lib/setup-codeql.js @@ -315,6 +315,13 @@ async function getCodeQLSource(toolsInput, defaultCliVersion, apiDetails, varian // If a tools URL was provided, then use that. tagName = tryGetTagNameFromUrl(toolsInput, logger); url = toolsInput; + if (tagName) { + const bundleVersion = tryGetBundleVersionFromTagName(tagName, logger); + // If the bundle version is a semantic version, it is a CLI version number. + if (bundleVersion && semver.valid(bundleVersion)) { + cliVersion = convertToSemVer(bundleVersion, logger); + } + } } else { // Otherwise, use the default CLI version passed in. diff --git a/lib/setup-codeql.js.map b/lib/setup-codeql.js.map index 212f2ab9b2..1c762af3c9 100644 --- a/lib/setup-codeql.js.map +++ b/lib/setup-codeql.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-codeql.js","sourceRoot":"","sources":["../src/setup-codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,2CAA6B;AAC7B,2CAAyC;AAEzC,+DAAiD;AACjD,sEAAuD;AACvD,+CAAiC;AACjC,+BAAoC;AAEpC,iDAAsD;AACtD,kDAAoC;AACpC,kGAAkG;AAClG,mGAAmG;AACnG,oBAAoB;AACpB,0DAA4C;AAE5C,iCAAqC;AAErC,6CAA+B;AAC/B,iCAAkD;AAErC,QAAA,gCAAgC,GAAG,sBAAsB,CAAC;AAEvE,SAAS,mBAAmB;IAC1B,IAAI,QAAgB,CAAC;IACrB,IAAI,OAAO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AC;AAC9E,CAAC;AAvDD,8CAuDC"} \ No newline at end of file +{"version":3,"file":"setup-codeql.js","sourceRoot":"","sources":["../src/setup-codeql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAEzB,2CAA6B;AAC7B,2CAAyC;AAEzC,+DAAiD;AACjD,sEAAuD;AACvD,+CAAiC;AACjC,+BAAoC;AAEpC,iDAAsD;AACtD,kDAAoC;AACpC,kGAAkG;AAClG,mGAAmG;AACnG,oBAAoB;AACpB,0DAA4C;AAE5C,iCAAqC;AAErC,6CAA+B;AAC/B,iCAAkD;AAErC,QAAA,gCAAgC,GAAG,sBAAsB,CAAC;AAEvE,SAAS,mBAAmB;IAC1B,IAAI,QAAgB,CAAC;IACrB,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;QAChC,QAAQ,GAAG,OAAO,CAAC;KACpB;SAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;QACvC,QAAQ,GAAG,SAAS,CAAC;KACtB;SAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;QACxC,QAAQ,GAAG,OAAO,CAAC;KACpB;SAAM;QACL,OAAO,sBAAsB,CAAC;KAC/B;IACD,OAAO,iBAAiB,QAAQ,SAAS,CAAC;AAC5C,CAAC;AAED,SAAgB,yBAAyB,CAAC,MAAc;IACtD,IAAI,IAAA,mCAAoB,GAAE,EAAE;QAC1B,kFAAkF;QAClF,kFAAkF;QAClF,gFAAgF;QAChF,MAAM,CAAC,IAAI,CACT,uFAAuF,CACxF,CAAC;QACF,OAAO,wCAAgC,CAAC;KACzC;IAED,OAAO,IAAI,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,CAAC;AAC9D,CAAC;AAZD,8DAYC;AAED;;;;;;;;;;;;;GAaG;AACH,KAAK,UAAU,iCAAiC,CAC9C,MAAc;IAEd,MAAM,CAAC,KAAK,CACV,sGAAsG,CACvG,CAAC;IACF,MAAM,S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,WAAW,GAAG,kBAAW,CAAC,KAAK,CAAC;YAChC,MAAM;QACR,KAAK,WAAW;YACd,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;YACnC,MAAM,CAAC,KAAK,CAAC,yBAAyB,YAAY,EAAE,CAAC,CAAC;YACtD,WAAW,GAAG,kBAAW,CAAC,SAAS,CAAC;YACpC,MAAM;QACR,KAAK,UAAU,CAAC,CAAC;YACf,MAAM,MAAM,GAAG,MAAM,cAAc,CACjC,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,aAAa,EACpB,MAAM,CAAC,UAAU,EACjB,UAAU,EACV,OAAO,EACP,OAAO,EACP,MAAM,CACP,CAAC;YACF,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;YACnC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;YACnC,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;YACzD,WAAW,GAAG,kBAAW,CAAC,QAAQ,CAAC;YACnC,MAAM;SACP;QACD;YACE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;KAC5B;IACD,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;AAC9E,CAAC;AAvDD,8CAuDC"} \ No newline at end of file diff --git a/lib/setup-codeql.test.js b/lib/setup-codeql.test.js index 47953f4557..25f7a81cce 100644 --- a/lib/setup-codeql.test.js +++ b/lib/setup-codeql.test.js @@ -117,4 +117,14 @@ ava_1.default.beforeEach(() => { message: "Failed to find a release of the CodeQL tools that contains CodeQL CLI 2.12.1.", }); }); +(0, ava_1.default)("getCodeQLSource sets CLI version for a semver tagged bundle", async (t) => { + await (0, util_1.withTmpDir)(async (tmpDir) => { + (0, testing_utils_1.setupActionsVars)(tmpDir, tmpDir); + const tagName = "codeql-bundle-v1.2.3"; + (0, testing_utils_1.mockBundleDownloadApi)({ tagName }); + const source = await setupCodeql.getCodeQLSource(`https://github.com/github/codeql-action/releases/download/${tagName}/codeql-bundle-linux64.tar.gz`, testing_utils_1.SAMPLE_DEFAULT_CLI_VERSION, testing_utils_1.SAMPLE_DOTCOM_API_DETAILS, util_1.GitHubVariant.DOTCOM, (0, logging_1.getRunnerLogger)(true)); + t.is(source.sourceType, "download"); + t.is(source["cliVersion"], "1.2.3"); + }); +}); //# sourceMappingURL=setup-codeql.test.js.map \ No newline at end of file diff --git a/lib/setup-codeql.test.js.map b/lib/setup-codeql.test.js.map index cf4ba8cbf9..bd322ba11f 100644 --- a/lib/setup-codeql.test.js.map +++ b/lib/setup-codeql.test.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-codeql.test.js","sourceRoot":"","sources":["../src/setup-codeql.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,8CAAuB;AACvB,6CAA+B;AAE/B,4DAA8C;AAC9C,kDAAoC;AACpC,uCAA4C;AAC5C,4DAA8C;AAC9C,mDAA6C;AAC7C,iCAA0D;AAE1D,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,CAAC,CAAC,SAAS,CACT,WAAW,CAAC,mBAAmB,CAC7B,mDAAmD,CACpD,EACD,UAAU,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE;IAC9B,MAAM,KAAK,GAAG;QACZ,UAAU,EAAE,gBAAgB;QAC5B,YAAY,EAAE,kBAAkB;QAChC,cAAc,EAAE,cAAc;QAC9B,OAAO,EAAE,OAAO;QAChB,aAAa,EAAE,aAAa;QAC5B,cAAc,EAAE,cAAc;KAC/B,CAAC;IAEF,KAAK,MAAM,CAAC,OAAO,EAAE,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,CAAC,CAAC,CAAC;IACJ,MAAM,CAAC,CAAC,WAAW,CACjB,KAAK,IAAI,EAAE,CACT,MAAM,WAAW,CAAC,6BAA6B,CAC7C,QAAQ,EACR,IAAA,yBAAe,EAAC,IAAI,CAAC,CACtB,EACH;QACE,OAAO,EACL,+EAA+E;KAClF,CACF,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"setup-codeql.test.js","sourceRoot":"","sources":["../src/setup-codeql.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAE7B,8CAAuB;AACvB,6CAA+B;AAE/B,4DAA8C;AAC9C,kDAAoC;AACpC,uCAA4C;AAC5C,4DAA8C;AAC9C,mDAMyB;AACzB,iCAKgB;AAEhB,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,CAAC,CAAC,SAAS,CACT,WAAW,CAAC,mBAAmB,CAC7B,mDAAmD,CACpD,EACD,UAAU,CACX,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,EAAE;IAC9B,MAAM,KAAK,GAAG;QACZ,UAAU,EAAE,gBAAgB;QAC5B,YAAY,EAAE,kBAAkB;QAChC,cAAc,EAAE,cAAc;QAC9B,OAAO,EAAE,OAAO;QAChB,aAAa,EAAE,aAAa;QAC5B,cAAc,EAAE,cAAc;KAC/B,CAAC;IAEF,KAAK,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAC9D,IAAI;YACF,MAAM,aAAa,GAAG,WAAW,CAAC,eAAe,CAC/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EACR,IAAA,yBAAe,EAAC,IAAI,CAAC,CACtB,EACH;QACE,OAAO,EACL,+EAA+E;KAClF,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,6DAA6D,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC9E,MAAM,IAAA,iBAAU,EAAC,KAAK,EAAE,MAAM,EAAE,EAAE;QAChC,IAAA,gCAAgB,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACjC,MAAM,OAAO,GAAG,sBAAsB,CAAC;QACvC,IAAA,qCAAqB,EAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QACnC,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,eAAe,CAC9C,6DAA6D,OAAO,+BAA+B,EACnG,0CAA0B,EAC1B,yCAAyB,EACzB,oBAAa,CAAC,MAAM,EACpB,IAAA,yBAAe,EAAC,IAAI,CAAC,CACtB,CAAC;QAEF,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QACpC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/testing-utils.js b/lib/testing-utils.js index 2f8463ccc3..8a42cc7750 100644 --- a/lib/testing-utils.js +++ b/lib/testing-utils.js @@ -22,15 +22,28 @@ var __importStar = (this && this.__importStar) || function (mod) { __setModuleDefault(result, mod); return result; }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.createFeatures = exports.mockCodeQLVersion = exports.mockLanguagesInRepo = exports.mockFeatureFlagApiEndpoint = exports.getRecordingLogger = exports.setupActionsVars = exports.setupTests = void 0; +exports.mockBundleDownloadApi = exports.createFeatures = exports.mockCodeQLVersion = exports.mockLanguagesInRepo = exports.mockFeatureFlagApiEndpoint = exports.getRecordingLogger = exports.setupActionsVars = exports.setupTests = exports.SAMPLE_DEFAULT_CLI_VERSION = exports.SAMPLE_DOTCOM_API_DETAILS = void 0; const node_util_1 = require("node:util"); +const path_1 = __importDefault(require("path")); const github = __importStar(require("@actions/github")); -const nock = __importStar(require("nock")); +const nock_1 = __importDefault(require("nock")); const sinon = __importStar(require("sinon")); const apiClient = __importStar(require("./api-client")); const CodeQL = __importStar(require("./codeql")); const util_1 = require("./util"); +exports.SAMPLE_DOTCOM_API_DETAILS = { + auth: "token", + url: "https://github.com", + apiURL: "https://api.github.com", +}; +exports.SAMPLE_DEFAULT_CLI_VERSION = { + cliVersion: "2.0.0", + variant: util_1.GitHubVariant.DOTCOM, +}; function wrapOutput(context) { // Function signature taken from Socket.write. // Note there are two overloads: @@ -92,7 +105,7 @@ function setupTests(test) { process.stdout.write(t.context.testOutput); } // Undo any modifications made by nock - nock.cleanAll(); + nock_1.default.cleanAll(); // Undo any modifications made by sinon sinon.restore(); // Undo any modifications to the env @@ -196,4 +209,26 @@ function createFeatures(enabledFeatures) { }; } exports.createFeatures = createFeatures; +/** + * Mocks the API for downloading the bundle tagged `tagName`. + * + * @returns the download URL for the bundle. This can be passed to the tools parameter of + * `codeql.setupCodeQL`. + */ +function mockBundleDownloadApi({ apiDetails = exports.SAMPLE_DOTCOM_API_DETAILS, isPinned, repo = "github/codeql-action", platformSpecific = true, tagName, }) { + const platform = process.platform === "win32" + ? "win64" + : process.platform === "linux" + ? "linux64" + : "osx64"; + const baseUrl = apiDetails?.url ?? "https://example.com"; + const relativeUrl = apiDetails + ? `/${repo}/releases/download/${tagName}/codeql-bundle${platformSpecific ? `-${platform}` : ""}.tar.gz` + : `/download/${tagName}/codeql-bundle.tar.gz`; + (0, nock_1.default)(baseUrl) + .get(relativeUrl) + .replyWithFile(200, path_1.default.join(__dirname, `/../src/testdata/codeql-bundle${isPinned ? "-pinned" : ""}.tar.gz`)); + return `${baseUrl}${relativeUrl}`; +} +exports.mockBundleDownloadApi = mockBundleDownloadApi; //# sourceMappingURL=testing-utils.js.map \ No newline at end of file diff --git a/lib/testing-utils.js.map b/lib/testing-utils.js.map index e1c127dcae..c417522834 100644 --- a/lib/testing-utils.js.map +++ b/lib/testing-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAwC;AAExC,wDAA0C;AAE1C,2CAA6B;AAC7B,6CAA+B;AAE/B,wDAA0C;AAC1C,iDAAmC;AAGnC,iCAAmC;AASnC,SAAS,UAAU,CAAC,OAAoB;IACtC,8CAA8C;IAC9C,gCAAgC;IAChC,2EAA2E;IAC3E,2FAA2F;IAC3F,OAAO,CACL,KAA0B,EAC1B,QAAiB,EACjB,EAA0B,EACjB,EAAE;QACX,2CAA2C;QAC3C,IAAI,EAAE,KAAK,SAAS,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;YACtD,EAAE,GAAG,QAAQ,CAAC;YACd,QAAQ,GAAG,SAAS,CAAC;SACtB;QAED,oBAAoB;QACpB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAC7B,OAAO,CAAC,UAAU,IAAI,KAAK,CAAC;SAC7B;aAAM;YACL,OAAO,CAAC,UAAU,IAAI,IAAI,uBAAW,CAAC,QAAQ,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SAC1E;QAED,iDAAiD;QACjD,IAAI,EAAE,KAAK,SAAS,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE;YAChD,EAAE,EAAE,CAAC;SACN;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,UAAU,CAAC,IAAiB;IAC1C,MAAM,SAAS,GAAG,IAA2B,CAAC;IAE9C,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE;QACzB,gEAAgE;QAChE,0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U,GAAG,iCAAyB,EACtC,QAAQ,EACR,IAAI,GAAG,sBAAsB,EAC7B,gBAAgB,GAAG,IAAI,EACvB,OAAO,GAOR;IACC,MAAM,QAAQ,GACZ,OAAO,CAAC,QAAQ,KAAK,OAAO;QAC1B,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO;YAC9B,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,OAAO,CAAC;IAEd,MAAM,OAAO,GAAG,UAAU,EAAE,GAAG,IAAI,qBAAqB,CAAC;IACzD,MAAM,WAAW,GAAG,UAAU;QAC5B,CAAC,CAAC,IAAI,IAAI,sBAAsB,OAAO,iBACnC,gBAAgB,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EACtC,SAAS;QACX,CAAC,CAAC,aAAa,OAAO,uBAAuB,CAAC;IAEhD,IAAA,cAAI,EAAC,OAAO,CAAC;SACV,GAAG,CAAC,WAAW,CAAC;SAChB,aAAa,CACZ,GAAG,EACH,cAAI,CAAC,IAAI,CACP,SAAS,EACT,iCAAiC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CACpE,CACF,CAAC;IAEJ,OAAO,GAAG,OAAO,GAAG,WAAW,EAAE,CAAC;AACpC,CAAC;AAtCD,sDAsCC"} \ No newline at end of file diff --git a/src/codeql.test.ts b/src/codeql.test.ts index 248fe1690f..21cad314c0 100644 --- a/src/codeql.test.ts +++ b/src/codeql.test.ts @@ -16,37 +16,29 @@ import { GitHubApiDetails } from "./api-client"; import * as codeql from "./codeql"; import { AugmentationProperties, Config } from "./config-utils"; import * as defaults from "./defaults.json"; -import { - CodeQLDefaultVersionInfo, - Feature, - featureConfig, -} from "./feature-flags"; +import { Feature, featureConfig } from "./feature-flags"; import { ToolsSource } from "./init"; import { Language } from "./languages"; import { getRunnerLogger } from "./logging"; -import { setupTests, createFeatures, setupActionsVars } from "./testing-utils"; +import { + setupTests, + createFeatures, + setupActionsVars, + SAMPLE_DOTCOM_API_DETAILS, + SAMPLE_DEFAULT_CLI_VERSION, + mockBundleDownloadApi, +} from "./testing-utils"; import * as util from "./util"; import { initializeEnvironment } from "./util"; setupTests(test); -const sampleApiDetails = { - auth: "token", - url: "https://github.com", - apiURL: "https://api.github.com", -}; - const sampleGHAEApiDetails = { auth: "token", url: "https://example.githubenterprise.com", apiURL: "https://example.githubenterprise.com/api/v3", }; -const SAMPLE_DEFAULT_CLI_VERSION: CodeQLDefaultVersionInfo = { - cliVersion: "2.0.0", - variant: util.GitHubVariant.DOTCOM, -}; - let stubConfig: Config; test.beforeEach(() => { @@ -78,54 +70,8 @@ test.beforeEach(() => { }; }); -/** - * Mocks the API for downloading the bundle tagged `tagName`. - * - * @returns the download URL for the bundle. This can be passed to the tools parameter of - * `codeql.setupCodeQL`. - */ -function mockDownloadApi({ - apiDetails = sampleApiDetails, - isPinned, - repo = "github/codeql-action", - platformSpecific = true, - tagName, -}: { - apiDetails?: GitHubApiDetails; - isPinned?: boolean; - repo?: string; - platformSpecific?: boolean; - tagName: string; -}): string { - const platform = - process.platform === "win32" - ? "win64" - : process.platform === "linux" - ? "linux64" - : "osx64"; - - const baseUrl = apiDetails?.url ?? "https://example.com"; - const relativeUrl = apiDetails - ? `/${repo}/releases/download/${tagName}/codeql-bundle${ - platformSpecific ? `-${platform}` : "" - }.tar.gz` - : `/download/${tagName}/codeql-bundle.tar.gz`; - - nock(baseUrl) - .get(relativeUrl) - .replyWithFile( - 200, - path.join( - __dirname, - `/../src/testdata/codeql-bundle${isPinned ? "-pinned" : ""}.tar.gz` - ) - ); - - return `${baseUrl}${relativeUrl}`; -} - async function installIntoToolcache({ - apiDetails = sampleApiDetails, + apiDetails = SAMPLE_DOTCOM_API_DETAILS, cliVersion, isPinned, tagName, @@ -137,7 +83,7 @@ async function installIntoToolcache({ tagName: string; tmpDir: string; }) { - const url = mockDownloadApi({ apiDetails, isPinned, tagName }); + const url = mockBundleDownloadApi({ apiDetails, isPinned, tagName }); await codeql.setupCodeQL( cliVersion !== undefined ? undefined : url, apiDetails, @@ -152,7 +98,7 @@ async function installIntoToolcache({ } function mockReleaseApi({ - apiDetails = sampleApiDetails, + apiDetails = SAMPLE_DOTCOM_API_DETAILS, assetNames, tagName, }: { @@ -195,13 +141,13 @@ test("downloads and caches explicitly requested bundles that aren't in the toolc for (let i = 0; i < versions.length; i++) { const version = versions[i]; - const url = mockDownloadApi({ + const url = mockBundleDownloadApi({ tagName: `codeql-bundle-${version}`, isPinned: false, }); const result = await codeql.setupCodeQL( url, - sampleApiDetails, + SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, @@ -229,12 +175,12 @@ test("downloads an explicitly requested bundle even if a different version is ca tmpDir, }); - const url = mockDownloadApi({ + const url = mockBundleDownloadApi({ tagName: "codeql-bundle-20200610", }); const result = await codeql.setupCodeQL( url, - sampleApiDetails, + SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, @@ -271,20 +217,20 @@ for (const { await util.withTmpDir(async (tmpDir) => { setupActionsVars(tmpDir, tmpDir); - mockApiDetails(sampleApiDetails); + mockApiDetails(SAMPLE_DOTCOM_API_DETAILS); sinon.stub(actionsUtil, "isRunningLocalAction").returns(true); const releaseApiMock = mockReleaseApi({ assetNames: [`cli-version-${cliVersion}.txt`], tagName: "codeql-bundle-20200610", }); - const url = mockDownloadApi({ + const url = mockBundleDownloadApi({ tagName: "codeql-bundle-20200610", }); const result = await codeql.setupCodeQL( url, - sampleApiDetails, + SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, @@ -351,7 +297,7 @@ for (const { githubReleases, toolcacheVersion } of [ const result = await codeql.setupCodeQL( undefined, - sampleApiDetails, + SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, @@ -379,7 +325,7 @@ for (const variant of [util.GitHubVariant.GHAE, util.GitHubVariant.GHES]) { const result = await codeql.setupCodeQL( undefined, - sampleApiDetails, + SAMPLE_DOTCOM_API_DETAILS, tmpDir, variant, { @@ -409,12 +355,12 @@ for (const variant of [util.GitHubVariant.GHAE, util.GitHubVariant.GHES]) { tmpDir, }); - mockDownloadApi({ + mockBundleDownloadApi({ tagName: defaults.bundleVersion, }); const result = await codeql.setupCodeQL( undefined, - sampleApiDetails, + SAMPLE_DOTCOM_API_DETAILS, tmpDir, variant, { @@ -445,12 +391,12 @@ test('downloads bundle if "latest" tools specified but not cached', async (t) => tmpDir, }); - mockDownloadApi({ + mockBundleDownloadApi({ tagName: defaults.bundleVersion, }); const result = await codeql.setupCodeQL( "latest", - sampleApiDetails, + SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, @@ -547,13 +493,13 @@ test("bundle URL from another repo is cached as 0.0.0-bundleVersion", async (t) await util.withTmpDir(async (tmpDir) => { setupActionsVars(tmpDir, tmpDir); - mockApiDetails(sampleApiDetails); + mockApiDetails(SAMPLE_DOTCOM_API_DETAILS); sinon.stub(actionsUtil, "isRunningLocalAction").returns(true); const releasesApiMock = mockReleaseApi({ assetNames: ["cli-version-2.12.2.txt"], tagName: "codeql-bundle-20230203", }); - mockDownloadApi({ + mockBundleDownloadApi({ repo: "codeql-testing/codeql-cli-nightlies", platformSpecific: false, tagName: "codeql-bundle-20230203", @@ -561,7 +507,7 @@ test("bundle URL from another repo is cached as 0.0.0-bundleVersion", async (t) const result = await codeql.setupCodeQL( "https://github.com/codeql-testing/codeql-cli-nightlies/releases/download/codeql-bundle-20230203/codeql-bundle.tar.gz", - sampleApiDetails, + SAMPLE_DOTCOM_API_DETAILS, tmpDir, util.GitHubVariant.DOTCOM, SAMPLE_DEFAULT_CLI_VERSION, diff --git a/src/setup-codeql.test.ts b/src/setup-codeql.test.ts index 5a1104e25f..666539d84a 100644 --- a/src/setup-codeql.test.ts +++ b/src/setup-codeql.test.ts @@ -7,8 +7,19 @@ import * as actionsUtil from "./actions-util"; import * as api from "./api-client"; import { getRunnerLogger } from "./logging"; import * as setupCodeql from "./setup-codeql"; -import { setupTests } from "./testing-utils"; -import { initializeEnvironment, wrapError } from "./util"; +import { + SAMPLE_DEFAULT_CLI_VERSION, + SAMPLE_DOTCOM_API_DETAILS, + mockBundleDownloadApi, + setupActionsVars, + setupTests, +} from "./testing-utils"; +import { + GitHubVariant, + initializeEnvironment, + withTmpDir, + wrapError, +} from "./util"; setupTests(test); @@ -123,3 +134,21 @@ test("findCodeQLBundleTagDotcomOnly() errors if no GitHub Release matches marker } ); }); + +test("getCodeQLSource sets CLI version for a semver tagged bundle", async (t) => { + await withTmpDir(async (tmpDir) => { + setupActionsVars(tmpDir, tmpDir); + const tagName = "codeql-bundle-v1.2.3"; + mockBundleDownloadApi({ tagName }); + const source = await setupCodeql.getCodeQLSource( + `https://github.com/github/codeql-action/releases/download/${tagName}/codeql-bundle-linux64.tar.gz`, + SAMPLE_DEFAULT_CLI_VERSION, + SAMPLE_DOTCOM_API_DETAILS, + GitHubVariant.DOTCOM, + getRunnerLogger(true) + ); + + t.is(source.sourceType, "download"); + t.is(source["cliVersion"], "1.2.3"); + }); +}); diff --git a/src/setup-codeql.ts b/src/setup-codeql.ts index 7cf836c08a..79f1b79712 100644 --- a/src/setup-codeql.ts +++ b/src/setup-codeql.ts @@ -400,6 +400,14 @@ export async function getCodeQLSource( // If a tools URL was provided, then use that. tagName = tryGetTagNameFromUrl(toolsInput, logger); url = toolsInput; + + if (tagName) { + const bundleVersion = tryGetBundleVersionFromTagName(tagName, logger); + // If the bundle version is a semantic version, it is a CLI version number. + if (bundleVersion && semver.valid(bundleVersion)) { + cliVersion = convertToSemVer(bundleVersion, logger); + } + } } else { // Otherwise, use the default CLI version passed in. cliVersion = defaultCliVersion.cliVersion; diff --git a/src/testing-utils.ts b/src/testing-utils.ts index f5f672f50d..626d7fcbf3 100644 --- a/src/testing-utils.ts +++ b/src/testing-utils.ts @@ -1,15 +1,32 @@ import { TextDecoder } from "node:util"; +import path from "path"; import * as github from "@actions/github"; import { TestFn } from "ava"; -import * as nock from "nock"; +import nock from "nock"; import * as sinon from "sinon"; import * as apiClient from "./api-client"; +import { GitHubApiDetails } from "./api-client"; import * as CodeQL from "./codeql"; -import { Feature, FeatureEnablement } from "./feature-flags"; +import { + CodeQLDefaultVersionInfo, + Feature, + FeatureEnablement, +} from "./feature-flags"; import { Logger } from "./logging"; -import { HTTPError } from "./util"; +import { GitHubVariant, HTTPError } from "./util"; + +export const SAMPLE_DOTCOM_API_DETAILS = { + auth: "token", + url: "https://github.com", + apiURL: "https://api.github.com", +}; + +export const SAMPLE_DEFAULT_CLI_VERSION: CodeQLDefaultVersionInfo = { + cliVersion: "2.0.0", + variant: GitHubVariant.DOTCOM, +}; type TestContext = { stdoutWrite: any; @@ -212,3 +229,49 @@ export function createFeatures(enabledFeatures: Feature[]): FeatureEnablement { }, }; } + +/** + * Mocks the API for downloading the bundle tagged `tagName`. + * + * @returns the download URL for the bundle. This can be passed to the tools parameter of + * `codeql.setupCodeQL`. + */ +export function mockBundleDownloadApi({ + apiDetails = SAMPLE_DOTCOM_API_DETAILS, + isPinned, + repo = "github/codeql-action", + platformSpecific = true, + tagName, +}: { + apiDetails?: GitHubApiDetails; + isPinned?: boolean; + repo?: string; + platformSpecific?: boolean; + tagName: string; +}): string { + const platform = + process.platform === "win32" + ? "win64" + : process.platform === "linux" + ? "linux64" + : "osx64"; + + const baseUrl = apiDetails?.url ?? "https://example.com"; + const relativeUrl = apiDetails + ? `/${repo}/releases/download/${tagName}/codeql-bundle${ + platformSpecific ? `-${platform}` : "" + }.tar.gz` + : `/download/${tagName}/codeql-bundle.tar.gz`; + + nock(baseUrl) + .get(relativeUrl) + .replyWithFile( + 200, + path.join( + __dirname, + `/../src/testdata/codeql-bundle${isPinned ? "-pinned" : ""}.tar.gz` + ) + ); + + return `${baseUrl}${relativeUrl}`; +} From a1be09ed8ac9fdcbeb92923c4f02edf921da5518 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Tue, 16 May 2023 18:20:13 +0100 Subject: [PATCH 28/35] Remove redundant query help version flag --- lib/codeql.js | 4 +--- lib/codeql.js.map | 2 +- lib/codeql.test.js | 18 ---------------- lib/codeql.test.js.map | 2 +- src/codeql.test.ts | 48 ------------------------------------------ src/codeql.ts | 4 +--- 6 files changed, 4 insertions(+), 74 deletions(-) diff --git a/lib/codeql.js b/lib/codeql.js index 2cbabf33ee..2b48723bff 100644 --- a/lib/codeql.js +++ b/lib/codeql.js @@ -66,7 +66,6 @@ const CODEQL_MINIMUM_VERSION = "2.8.5"; * For convenience, please keep these in descending order. Once a version * flag is older than the oldest supported version above, it may be removed. */ -const CODEQL_VERSION_CUSTOM_QUERY_HELP = "2.7.1"; const CODEQL_VERSION_LUA_TRACER_CONFIG = "2.10.0"; const CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED = "2.10.4"; exports.CODEQL_VERSION_GHES_PACK_DOWNLOAD = "2.10.4"; @@ -438,12 +437,11 @@ async function getCodeQLForCmd(cmd, checkVersion) { addSnippetsFlag, "--print-diagnostics-summary", "--print-metrics-summary", + "--sarif-add-query-help", "--sarif-group-rules-by-pack", ...(await getCodeScanningConfigExportArguments(config, this, features)), ...getExtraOptionsFromEnv(["database", "interpret-results"]), ]; - if (await util.codeQlVersionAbove(this, CODEQL_VERSION_CUSTOM_QUERY_HELP)) - codeqlArgs.push("--sarif-add-query-help"); if (automationDetailsId !== undefined) { codeqlArgs.push("--sarif-category", automationDetailsId); } diff --git a/lib/codeql.js.map b/lib/codeql.js.map index 0e3dff0131..e22dd082a4 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":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/codeql.test.js +++ b/lib/codeql.test.js @@ -418,24 +418,6 @@ for (const isBundleVersionInUrl of [true, false]) { t.throws(() => codeql.getExtraOptions({ foo: 87 }, ["foo"], [])); t.throws(() => codeql.getExtraOptions({ "*": [42], foo: { "*": 87, bar: [99] } }, ["foo", "bar"], [])); }); -(0, ava_1.default)("databaseInterpretResults() does not set --sarif-add-query-help for 2.7.0", async (t) => { - const runnerConstructorStub = stubToolRunnerConstructor(); - const codeqlObject = await codeql.getCodeQLForTesting(); - sinon.stub(codeqlObject, "getVersion").resolves("2.7.0"); - // safeWhich throws because of the test CodeQL object. - sinon.stub(safeWhich, "safeWhich").resolves(""); - await codeqlObject.databaseInterpretResults("", [], "", "", "", "-v", "", stubConfig, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true)); - t.false(runnerConstructorStub.firstCall.args[1].includes("--sarif-add-query-help"), "--sarif-add-query-help should be absent, but it is present"); -}); -(0, ava_1.default)("databaseInterpretResults() sets --sarif-add-query-help for 2.7.1", async (t) => { - const runnerConstructorStub = stubToolRunnerConstructor(); - const codeqlObject = await codeql.getCodeQLForTesting(); - sinon.stub(codeqlObject, "getVersion").resolves("2.7.1"); - // safeWhich throws because of the test CodeQL object. - sinon.stub(safeWhich, "safeWhich").resolves(""); - await codeqlObject.databaseInterpretResults("", [], "", "", "", "-v", "", stubConfig, (0, testing_utils_1.createFeatures)([]), (0, logging_1.getRunnerLogger)(true)); - t.true(runnerConstructorStub.firstCall.args[1].includes("--sarif-add-query-help"), "--sarif-add-query-help should be present, but it is absent"); -}); (0, ava_1.default)("databaseInitCluster() without injected codescanning config", async (t) => { await util.withTmpDir(async (tempDir) => { const runnerConstructorStub = stubToolRunnerConstructor(); diff --git a/lib/codeql.test.js.map b/lib/codeql.test.js.map index 7648c98722..e922b411e7 100644 --- a/lib/codeql.test.js.map +++ b/lib/codeql.test.js.map @@ -1 +1 @@ -{"version":3,"file":"codeql.test.js","sourceRoot":"","sources":["../src/codeql.test.ts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E,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClC,MAAM,qBAAqB,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACnE,qBAAqB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAChD,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AATD,8DASC"} \ No newline at end of file diff --git a/src/codeql.test.ts b/src/codeql.test.ts index 248fe1690f..697ded0600 100644 --- a/src/codeql.test.ts +++ b/src/codeql.test.ts @@ -622,54 +622,6 @@ test("getExtraOptions throws for bad content", (t) => { ); }); -test("databaseInterpretResults() does not set --sarif-add-query-help for 2.7.0", async (t) => { - const runnerConstructorStub = stubToolRunnerConstructor(); - const codeqlObject = await codeql.getCodeQLForTesting(); - sinon.stub(codeqlObject, "getVersion").resolves("2.7.0"); - // safeWhich throws because of the test CodeQL object. - sinon.stub(safeWhich, "safeWhich").resolves(""); - await codeqlObject.databaseInterpretResults( - "", - [], - "", - "", - "", - "-v", - "", - stubConfig, - createFeatures([]), - getRunnerLogger(true) - ); - t.false( - runnerConstructorStub.firstCall.args[1].includes("--sarif-add-query-help"), - "--sarif-add-query-help should be absent, but it is present" - ); -}); - -test("databaseInterpretResults() sets --sarif-add-query-help for 2.7.1", async (t) => { - const runnerConstructorStub = stubToolRunnerConstructor(); - const codeqlObject = await codeql.getCodeQLForTesting(); - sinon.stub(codeqlObject, "getVersion").resolves("2.7.1"); - // safeWhich throws because of the test CodeQL object. - sinon.stub(safeWhich, "safeWhich").resolves(""); - await codeqlObject.databaseInterpretResults( - "", - [], - "", - "", - "", - "-v", - "", - stubConfig, - createFeatures([]), - getRunnerLogger(true) - ); - t.true( - runnerConstructorStub.firstCall.args[1].includes("--sarif-add-query-help"), - "--sarif-add-query-help should be present, but it is absent" - ); -}); - test("databaseInitCluster() without injected codescanning config", async (t) => { await util.withTmpDir(async (tempDir) => { const runnerConstructorStub = stubToolRunnerConstructor(); diff --git a/src/codeql.ts b/src/codeql.ts index 9238765500..3cb855de0b 100644 --- a/src/codeql.ts +++ b/src/codeql.ts @@ -259,7 +259,6 @@ const CODEQL_MINIMUM_VERSION = "2.8.5"; * For convenience, please keep these in descending order. Once a version * flag is older than the oldest supported version above, it may be removed. */ -const CODEQL_VERSION_CUSTOM_QUERY_HELP = "2.7.1"; const CODEQL_VERSION_LUA_TRACER_CONFIG = "2.10.0"; const CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED = "2.10.4"; export const CODEQL_VERSION_GHES_PACK_DOWNLOAD = "2.10.4"; @@ -773,12 +772,11 @@ export async function getCodeQLForCmd( addSnippetsFlag, "--print-diagnostics-summary", "--print-metrics-summary", + "--sarif-add-query-help", "--sarif-group-rules-by-pack", ...(await getCodeScanningConfigExportArguments(config, this, features)), ...getExtraOptionsFromEnv(["database", "interpret-results"]), ]; - if (await util.codeQlVersionAbove(this, CODEQL_VERSION_CUSTOM_QUERY_HELP)) - codeqlArgs.push("--sarif-add-query-help"); if (automationDetailsId !== undefined) { codeqlArgs.push("--sarif-category", automationDetailsId); } From 50931b43dd59298feaffdf52602d5bd753163188 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Wed, 17 May 2023 14:56:44 +0100 Subject: [PATCH 29/35] Add changelog note --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41e2b93e8d..a46693e5a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ ## [UNRELEASED] - We are rolling out a feature in May 2023 that will disable Python dependency installation for new users of the CodeQL Action. This improves the speed of analysis while having only a very minor impact on results. [#1676](https://github.com/github/codeql-action/pull/1676) +- We are improving the way that the CodeQL bundle is tagged to streamline the process of obtaining the CodeQL tools. + - As of CodeQL CLI 2.13.3, the CodeQL bundle will be tagged using a semantic version, for example `codeql-bundle-v2.13.3` instead of a timestamp like `codeql-bundle-20230601`. + - This change does not affect the majority of workflows, and we will not be changing tags for existing bundle releases. + - Users may need to update any workflows that depend on the specific format of the CodeQL bundle tag. - Remove the requirement for `on.push` and `on.pull_request` to trigger on the same branches. [#1675](https://github.com/github/codeql-action/pull/1675) ## 2.3.3 - 04 May 2023 From a5f4123fb014773482d5eded7370f278a8e91c10 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Wed, 17 May 2023 18:23:54 +0100 Subject: [PATCH 30/35] Improve changelog note --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a46693e5a3..506534fa41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,10 @@ ## [UNRELEASED] - We are rolling out a feature in May 2023 that will disable Python dependency installation for new users of the CodeQL Action. This improves the speed of analysis while having only a very minor impact on results. [#1676](https://github.com/github/codeql-action/pull/1676) -- We are improving the way that the CodeQL bundle is tagged to streamline the process of obtaining the CodeQL tools. - - As of CodeQL CLI 2.13.3, the CodeQL bundle will be tagged using a semantic version, for example `codeql-bundle-v2.13.3` instead of a timestamp like `codeql-bundle-20230601`. +- We are improving the way that [CodeQL bundles](https://github.com/github/codeql-action/releases) are tagged to make it possible to easily identify bundles by their CodeQL semantic version. + - As of CodeQL CLI 2.13.3, CodeQL bundles will be tagged using semantic versions, for example `codeql-bundle-v2.13.3`, instead of timestamps, like `codeql-bundle-20230601`. - This change does not affect the majority of workflows, and we will not be changing tags for existing bundle releases. - - Users may need to update any workflows that depend on the specific format of the CodeQL bundle tag. + - Some workflows with custom logic that depends on the specific format of the CodeQL bundle tag may need to be updated. For example, if your workflow matches CodeQL bundle tag names against a `codeql-bundle-yyyymmdd` pattern, you should update it to also recognize `codeql-bundle-vx.y.z` tags. - Remove the requirement for `on.push` and `on.pull_request` to trigger on the same branches. [#1675](https://github.com/github/codeql-action/pull/1675) ## 2.3.3 - 04 May 2023 From 317cd34a7a0483d526721d8e9a747358a637c6ca Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 22 May 2023 11:00:25 +0100 Subject: [PATCH 31/35] Push back semver CodeQL bundles Push back the first bundle released using a semantic version number to 2.13.4 now that we're skipping 2.13.2. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 506534fa41..017f96e4ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - We are rolling out a feature in May 2023 that will disable Python dependency installation for new users of the CodeQL Action. This improves the speed of analysis while having only a very minor impact on results. [#1676](https://github.com/github/codeql-action/pull/1676) - We are improving the way that [CodeQL bundles](https://github.com/github/codeql-action/releases) are tagged to make it possible to easily identify bundles by their CodeQL semantic version. - - As of CodeQL CLI 2.13.3, CodeQL bundles will be tagged using semantic versions, for example `codeql-bundle-v2.13.3`, instead of timestamps, like `codeql-bundle-20230601`. + - As of CodeQL CLI 2.13.4, CodeQL bundles will be tagged using semantic versions, for example `codeql-bundle-v2.13.4`, instead of timestamps, like `codeql-bundle-20230615`. - This change does not affect the majority of workflows, and we will not be changing tags for existing bundle releases. - Some workflows with custom logic that depends on the specific format of the CodeQL bundle tag may need to be updated. For example, if your workflow matches CodeQL bundle tag names against a `codeql-bundle-yyyymmdd` pattern, you should update it to also recognize `codeql-bundle-vx.y.z` tags. - Remove the requirement for `on.push` and `on.pull_request` to trigger on the same branches. [#1675](https://github.com/github/codeql-action/pull/1675) From 8c923c00a335c8b49eb52df25a45c1d3c3620730 Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Wed, 24 May 2023 09:59:40 -0700 Subject: [PATCH 32/35] Fix Swift PR Checks on `nightly-latest` CLI (#1696) --- .github/actions/setup-swift/action.yml | 21 ++++++++++++------- .github/workflows/__analyze-ref-input.yml | 3 +-- .github/workflows/__autobuild-action.yml | 3 +-- .github/workflows/__config-export.yml | 3 +-- .github/workflows/__diagnostics-export.yml | 3 +-- .../__export-file-baseline-information.yml | 3 +-- .github/workflows/__extractor-ram-threads.yml | 3 +-- .github/workflows/__go-custom-queries.yml | 3 +-- .../workflows/__go-tracing-autobuilder.yml | 3 +-- .../__go-tracing-custom-build-steps.yml | 3 +-- .../__go-tracing-legacy-workflow.yml | 3 +-- .github/workflows/__init-with-registries.yml | 3 +-- .../workflows/__javascript-source-root.yml | 3 +-- .github/workflows/__ml-powered-queries.yml | 3 +-- .../workflows/__multi-language-autodetect.yml | 7 ++++--- ...ackaging-codescanning-config-inputs-js.yml | 3 +-- .../__packaging-config-inputs-js.yml | 3 +-- .github/workflows/__packaging-config-js.yml | 3 +-- .github/workflows/__packaging-inputs-js.yml | 3 +-- .github/workflows/__remote-config.yml | 3 +-- .../workflows/__rubocop-multi-language.yml | 3 +-- .github/workflows/__ruby.yml | 3 +-- .github/workflows/__split-workflow.yml | 3 +-- .github/workflows/__submit-sarif-failure.yml | 3 +-- .github/workflows/__swift-custom-build.yml | 3 +-- .../__test-autobuild-working-dir.yml | 3 +-- .github/workflows/__test-local-codeql.yml | 3 +-- .github/workflows/__test-proxy.yml | 3 +-- .github/workflows/__unset-environment.yml | 3 +-- .github/workflows/__upload-ref-sha-input.yml | 3 +-- .github/workflows/__with-checkout-path.yml | 3 +-- .github/workflows/debug-artifacts.yml | 5 +++++ .../checks/multi-language-autodetect.yml | 4 +++- pr-checks/sync.py | 3 +-- 34 files changed, 55 insertions(+), 72 deletions(-) diff --git a/.github/actions/setup-swift/action.yml b/.github/actions/setup-swift/action.yml index b1092f4b70..d780b329fc 100644 --- a/.github/actions/setup-swift/action.yml +++ b/.github/actions/setup-swift/action.yml @@ -1,5 +1,5 @@ name: "Set up Swift" -description: Sets up an appropriate Swift version if Swift is enabled via CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT. +description: Sets up an appropriate Swift version if supported on this platform. inputs: codeql-path: description: Path to the CodeQL CLI executable. @@ -9,24 +9,29 @@ runs: steps: - name: Get Swift version id: get_swift_version - if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true' + if: runner.os != 'Windows' shell: bash env: CODEQL_PATH: ${{ inputs.codeql-path }} run: | - if [ $RUNNER_OS = "macOS" ]; then + if [[ $RUNNER_OS = "macOS" ]]; then PLATFORM="osx64" else # We do not run this step on Windows. PLATFORM="linux64" fi SWIFT_EXTRACTOR_DIR="$("$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]')" - VERSION="$("$SWIFT_EXTRACTOR_DIR/tools/$PLATFORM/extractor" --version | awk '/version/ { print $3 }')" - # Specify 5.7.0, otherwise setup Action will default to latest minor version. - if [ $VERSION = "5.7" ]; then - VERSION="5.7.0" + if [ $SWIFT_EXTRACTOR_DIR = "null" ]; then + VERSION="null" + else + VERSION="$("$SWIFT_EXTRACTOR_DIR/tools/$PLATFORM/extractor" --version | awk '/version/ { print $3 }')" + # Specify 5.7.0, otherwise setup Action will default to latest minor version. + if [ $VERSION = "5.7" ]; then + VERSION="5.7.0" + fi fi echo "version=$VERSION" | tee -a $GITHUB_OUTPUT + - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test. - if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true' + if: runner.os != 'Windows' && steps.get_swift_version.outputs.version != 'null' with: swift-version: "${{ steps.get_swift_version.outputs.version }}" diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index eaa4311423..e2b6bfdfcc 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -84,8 +84,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__autobuild-action.yml b/.github/workflows/__autobuild-action.yml index 8f9c0c3aba..3edff4fa9c 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -48,8 +48,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__config-export.yml b/.github/workflows/__config-export.yml index 4fbc4e51e6..e347e452d3 100644 --- a/.github/workflows/__config-export.yml +++ b/.github/workflows/__config-export.yml @@ -54,8 +54,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__diagnostics-export.yml b/.github/workflows/__diagnostics-export.yml index 96a6dc12ed..798d8912b2 100644 --- a/.github/workflows/__diagnostics-export.yml +++ b/.github/workflows/__diagnostics-export.yml @@ -60,8 +60,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index e7c11fc1d3..9ac18e6c97 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -48,8 +48,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__extractor-ram-threads.yml b/.github/workflows/__extractor-ram-threads.yml index f0f7c4b436..4f9623d276 100644 --- a/.github/workflows/__extractor-ram-threads.yml +++ b/.github/workflows/__extractor-ram-threads.yml @@ -44,8 +44,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index 983bc759ea..bf6644d574 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -84,8 +84,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__go-tracing-autobuilder.yml b/.github/workflows/__go-tracing-autobuilder.yml index ebc72a106b..f819825cc1 100644 --- a/.github/workflows/__go-tracing-autobuilder.yml +++ b/.github/workflows/__go-tracing-autobuilder.yml @@ -70,8 +70,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__go-tracing-custom-build-steps.yml b/.github/workflows/__go-tracing-custom-build-steps.yml index 89d6a1b470..7a0a69e6f0 100644 --- a/.github/workflows/__go-tracing-custom-build-steps.yml +++ b/.github/workflows/__go-tracing-custom-build-steps.yml @@ -70,8 +70,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__go-tracing-legacy-workflow.yml b/.github/workflows/__go-tracing-legacy-workflow.yml index f24322b9e6..912ebed24b 100644 --- a/.github/workflows/__go-tracing-legacy-workflow.yml +++ b/.github/workflows/__go-tracing-legacy-workflow.yml @@ -70,8 +70,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index 05fecab7d2..7ccd818ec0 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -60,8 +60,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__javascript-source-root.yml b/.github/workflows/__javascript-source-root.yml index 20d80c2c89..23d2b3700b 100644 --- a/.github/workflows/__javascript-source-root.yml +++ b/.github/workflows/__javascript-source-root.yml @@ -48,8 +48,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__ml-powered-queries.yml b/.github/workflows/__ml-powered-queries.yml index fc11c53bc3..728b572f73 100644 --- a/.github/workflows/__ml-powered-queries.yml +++ b/.github/workflows/__ml-powered-queries.yml @@ -84,8 +84,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index ea4f00c6ee..02f3372fe5 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -70,8 +70,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV @@ -139,7 +138,9 @@ jobs: fi - name: Check language autodetect for Swift - if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true' + if: >- + env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true' || + (runner.os != 'Windows' && matrix.version == 'nightly-latest') shell: bash run: | SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }} diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index adc418ea04..e23ae45058 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -60,8 +60,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index 879fecccd3..45b08a4146 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -60,8 +60,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index 18a03452f6..0e0b8f3efe 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -60,8 +60,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index 700a790079..f385b65a97 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -60,8 +60,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index f0b4dcb1e4..132db0725e 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -84,8 +84,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__rubocop-multi-language.yml b/.github/workflows/__rubocop-multi-language.yml index a5e9626292..8c31d45224 100644 --- a/.github/workflows/__rubocop-multi-language.yml +++ b/.github/workflows/__rubocop-multi-language.yml @@ -44,8 +44,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__ruby.yml b/.github/workflows/__ruby.yml index eb768b343f..b551aad495 100644 --- a/.github/workflows/__ruby.yml +++ b/.github/workflows/__ruby.yml @@ -54,8 +54,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index 4f2d69a6ac..1197b832a4 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -54,8 +54,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index 02cd876eab..70b03825be 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -48,8 +48,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index b309b4abd7..b5676623b1 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -54,8 +54,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__test-autobuild-working-dir.yml b/.github/workflows/__test-autobuild-working-dir.yml index e0b039bacf..8c3ef25b20 100644 --- a/.github/workflows/__test-autobuild-working-dir.yml +++ b/.github/workflows/__test-autobuild-working-dir.yml @@ -44,8 +44,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index 3a5470ed74..427f79a7a7 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -44,8 +44,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__test-proxy.yml b/.github/workflows/__test-proxy.yml index 8666073bec..d5ce77d1cf 100644 --- a/.github/workflows/__test-proxy.yml +++ b/.github/workflows/__test-proxy.yml @@ -44,8 +44,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index 54085d2dad..48aaae7a84 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -56,8 +56,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index ebda509007..7179d84f2d 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -84,8 +84,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/__with-checkout-path.yml b/.github/workflows/__with-checkout-path.yml index 5be33e0a66..da2ead8bc0 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -84,8 +84,7 @@ jobs: matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) shell: bash run: echo "CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT=true" >> $GITHUB_ENV diff --git a/.github/workflows/debug-artifacts.yml b/.github/workflows/debug-artifacts.yml index 6a43bd94f9..1003a8dacc 100644 --- a/.github/workflows/debug-artifacts.yml +++ b/.github/workflows/debug-artifacts.yml @@ -49,11 +49,16 @@ jobs: with: go-version: ^1.13.1 - uses: ./../action/init + id: init with: tools: ${{ steps.prepare-test.outputs.tools-url }} debug: true debug-artifact-name: my-debug-artifacts debug-database-name: my-db + - uses: ./../action/.github/actions/setup-swift + if: matrix.version == 'nightly-latest' + with: + codeql-path: ${{ steps.init.outputs.codeql-path }} - name: Build code shell: bash run: ./build.sh diff --git a/pr-checks/checks/multi-language-autodetect.yml b/pr-checks/checks/multi-language-autodetect.yml index 54d90d5f73..1fa3c42e20 100644 --- a/pr-checks/checks/multi-language-autodetect.yml +++ b/pr-checks/checks/multi-language-autodetect.yml @@ -66,7 +66,9 @@ steps: fi - name: Check language autodetect for Swift - if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true' + if: >- + env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true' || + (runner.os != 'Windows' && matrix.version == 'nightly-latest') shell: bash run: | SWIFT_DB=${{ fromJson(steps.analysis.outputs.db-locations).swift }} diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 36cb3980bb..80067e155b 100644 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -83,8 +83,7 @@ def writeHeader(checkStream): matrix.version == '20220908' || matrix.version == '20221211' || matrix.version == 'cached' || - matrix.version == 'latest' || - matrix.version == 'nightly-latest' + matrix.version == 'latest' ) ''').strip()), 'shell': 'bash', From 570734c55cf1311f85574586c6a07b27dcc2c8fe Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Wed, 24 May 2023 11:33:06 -0700 Subject: [PATCH 33/35] Remove unnecessary conditional for Ruby autodetect (#1699) We should check language autodetect for Ruby unconditionally. We can now move it into the step that checks all other languages. --- .github/workflows/__multi-language-autodetect.yml | 7 +------ pr-checks/checks/multi-language-autodetect.yml | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index 02f3372fe5..837d2547a0 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -93,7 +93,7 @@ jobs: with: upload-database: false - - name: Check language autodetect for all languages excluding Ruby, Swift + - name: Check language autodetect for all languages excluding Swift shell: bash run: | CPP_DB=${{ fromJson(steps.analysis.outputs.db-locations).cpp }} @@ -126,11 +126,6 @@ jobs: echo "Did not create a database for Python, or created it in the wrong location." exit 1 fi - - - name: Check language autodetect for Ruby - if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true' - shell: bash - run: | RUBY_DB=${{ fromJson(steps.analysis.outputs.db-locations).ruby }} if [[ ! -d $RUBY_DB ]] || [[ ! $RUBY_DB == ${{ runner.temp }}/customDbLocation/* ]]; then echo "Did not create a database for Ruby, or created it in the wrong location." diff --git a/pr-checks/checks/multi-language-autodetect.yml b/pr-checks/checks/multi-language-autodetect.yml index 1fa3c42e20..7954de7e91 100644 --- a/pr-checks/checks/multi-language-autodetect.yml +++ b/pr-checks/checks/multi-language-autodetect.yml @@ -21,7 +21,7 @@ steps: with: upload-database: false - - name: Check language autodetect for all languages excluding Ruby, Swift + - name: Check language autodetect for all languages excluding Swift shell: bash run: | CPP_DB=${{ fromJson(steps.analysis.outputs.db-locations).cpp }} @@ -54,11 +54,6 @@ steps: echo "Did not create a database for Python, or created it in the wrong location." exit 1 fi - - - name: Check language autodetect for Ruby - if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true' - shell: bash - run: | RUBY_DB=${{ fromJson(steps.analysis.outputs.db-locations).ruby }} if [[ ! -d $RUBY_DB ]] || [[ ! $RUBY_DB == ${{ runner.temp }}/customDbLocation/* ]]; then echo "Did not create a database for Ruby, or created it in the wrong location." From c3ae9dcd15bfebf907278d3d1eeaa13c969fdddf Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 24 May 2023 21:41:27 +0000 Subject: [PATCH 34/35] Update changelog for v2.3.4 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 017f96e4ce..603d6e43d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CodeQL Action Changelog -## [UNRELEASED] +## 2.3.4 - 24 May 2023 - We are rolling out a feature in May 2023 that will disable Python dependency installation for new users of the CodeQL Action. This improves the speed of analysis while having only a very minor impact on results. [#1676](https://github.com/github/codeql-action/pull/1676) - We are improving the way that [CodeQL bundles](https://github.com/github/codeql-action/releases) are tagged to make it possible to easily identify bundles by their CodeQL semantic version. From 0d656217574851caf9129ce95d50a81493f4994b Mon Sep 17 00:00:00 2001 From: Angela P Wen Date: Wed, 24 May 2023 14:49:16 -0700 Subject: [PATCH 35/35] Update CHANGELOG.md --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 603d6e43d1..9ef2e51361 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,9 @@ ## 2.3.4 - 24 May 2023 +- Updated the SARIF 2.1.0 JSON schema file to the latest from [oasis-tcs/sarif-spec](https://github.com/oasis-tcs/sarif-spec/blob/123e95847b13fbdd4cbe2120fa5e33355d4a042b/Schemata/sarif-schema-2.1.0.json). [#1668](https://github.com/github/codeql-action/pull/1668) - We are rolling out a feature in May 2023 that will disable Python dependency installation for new users of the CodeQL Action. This improves the speed of analysis while having only a very minor impact on results. [#1676](https://github.com/github/codeql-action/pull/1676) -- We are improving the way that [CodeQL bundles](https://github.com/github/codeql-action/releases) are tagged to make it possible to easily identify bundles by their CodeQL semantic version. +- We are improving the way that [CodeQL bundles](https://github.com/github/codeql-action/releases) are tagged to make it possible to easily identify bundles by their CodeQL semantic version. [#1682](https://github.com/github/codeql-action/pull/1682) - As of CodeQL CLI 2.13.4, CodeQL bundles will be tagged using semantic versions, for example `codeql-bundle-v2.13.4`, instead of timestamps, like `codeql-bundle-20230615`. - This change does not affect the majority of workflows, and we will not be changing tags for existing bundle releases. - Some workflows with custom logic that depends on the specific format of the CodeQL bundle tag may need to be updated. For example, if your workflow matches CodeQL bundle tag names against a `codeql-bundle-yyyymmdd` pattern, you should update it to also recognize `codeql-bundle-vx.y.z` tags. @@ -13,7 +14,6 @@ - Update default CodeQL bundle version to 2.13.1. [#1664](https://github.com/github/codeql-action/pull/1664) - You can now configure CodeQL within your code scanning workflow by passing a `config` input to the `init` Action. See [Using a custom configuration file](https://aka.ms/code-scanning-docs/config-file) for more information about configuring code scanning. [#1590](https://github.com/github/codeql-action/pull/1590) -- Updated the SARIF 2.1.0 JSON schema file to the latest from [oasis-tcs/sarif-spec](https://github.com/oasis-tcs/sarif-spec/blob/123e95847b13fbdd4cbe2120fa5e33355d4a042b/Schemata/sarif-schema-2.1.0.json). [#1668](https://github.com/github/codeql-action/pull/1668) ## 2.3.2 - 27 Apr 2023