diff --git a/src/Bicep.Cli.IntegrationTests/BuildCommandTests.cs b/src/Bicep.Cli.IntegrationTests/BuildCommandTests.cs index 3d22362ccc5..e0132c578c1 100644 --- a/src/Bicep.Cli.IntegrationTests/BuildCommandTests.cs +++ b/src/Bicep.Cli.IntegrationTests/BuildCommandTests.cs @@ -429,7 +429,7 @@ public async Task Build_WithOutDir_ShouldSucceed(string[] args) var errorJToken = JToken.Parse(error); var expectedErrorJToken = JToken.Parse(""" { - "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.6.json", + "$schema": "https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0.json", "version": "2.1.0", "runs": [ { @@ -609,42 +609,42 @@ public async Task Build_WithValidBicepConfig_ShouldProduceOutputFileAndExpectedE output.Should().BeEmpty(); var errorJToken = JToken.Parse(error); var expectedErrorJToken = JToken.Parse(""" -{ - "$schema":"https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0-rtm.6.json", - "version":"2.1.0", - "runs":[ - { - "tool":{ - "driver":{ - "name":"bicep" - } - }, - "results":[ - { - "ruleId":"no-unused-params", - "message":{ - "text":"Parameter \"storageAccountName\" is declared but never used. [https://aka.ms/bicep/linter-diagnostics#no-unused-params]" - }, - "locations":[ - { - "physicalLocation":{ - "artifactLocation":{ - "uri":"main.bicep" - }, - "region":{ - "startLine":1, - "charOffset":7 + { + "$schema":"https://schemastore.azurewebsites.net/schemas/json/sarif-2.1.0.json", + "version": "2.1.0", + "runs": [ + { + "tool": { + "driver": { + "name": "bicep" } - } - } - ] - } - ], - "columnKind":"utf16CodeUnits" - } - ] -} -"""); + }, + "results": [ + { + "ruleId": "no-unused-params", + "message": { + "text": "Parameter \"storageAccountName\" is declared but never used. [https://aka.ms/bicep/linter-diagnostics#no-unused-params]" + }, + "locations": [ + { + "physicalLocation": { + "artifactLocation": { + "uri": "main.bicep" + }, + "region": { + "startLine": 1, + "charOffset": 7 + } + } + } + ] + } + ], + "columnKind": "utf16CodeUnits" + } + ] + } + """); var selectedPath = errorJToken.SelectToken("$.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri"); selectedPath.Should().NotBeNull(); selectedPath?.Value().Should().Contain("file://"); diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 0d0c3c7f0b0..70454d3349e 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -86,7 +86,7 @@ - +