Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions src/Bicep.Cli.IntegrationTests/BuildCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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<string>().Should().Contain("file://");
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<PackageVersion Include="OmniSharp.Extensions.LanguageServer" Version="0.19.9" />
<PackageVersion Include="PublicApiGenerator" Version="11.5.4" />
<PackageVersion Include="RichardSzalay.MockHttp" Version="7.0.0" />
<PackageVersion Include="Sarif.Sdk" Version="4.6.4" />
<PackageVersion Include="Sarif.Sdk" Version="5.0.9" />
<PackageVersion Include="Semver" Version="3.0.0" />
<PackageVersion Include="Serilog.Extensions.Hosting" Version="10.0.0" />
<PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" />
Expand Down
Loading