Skip to content

HdfConverter improvements - #2699

Merged
Michael C. Fanning (michaelcfanning) merged 5 commits into
mainfrom
hdfconverter-improvements
Jul 27, 2023
Merged

Michael C. Fanning (michaelcfanning) merged 5 commits into
mainfrom
hdfconverter-improvements

Conversation

@candrews

Copy link
Copy Markdown
Contributor

Various improvements to HdfConverter, fixing GitHub validation errors, adding new SARIF support, and improving SARIF compliance.

@michaelcfanning

Copy link
Copy Markdown
Contributor

You'll need to fix up the input files, e.g., at src\Test.UnitTests.Sarif.Converters\TestData\HdfConverter\Inputs\ValidResults.json to adhere to the new output format.

2023-07-24T21:40:10.1310592Z [xUnit.net 00:00:02.20] Microsoft.CodeAnalysis.Sarif.Converters.HdfConverterTests.Converter_WhenInputIsEmpty_ReturnsNoResults [FAIL]
2023-07-24T21:40:10.5082924Z [xUnit.net 00:00:02.52] Microsoft.CodeAnalysis.Sarif.Converters.HdfConverterTests.Converter_WhenInputContainsValidResults_ReturnsExpectedOutput [FAIL]

Per https://sarifweb.azurewebsites.net/Validation
> Each result location must provide the property 'physicalLocation.artifactLocation.uri'.
> GitHub Advanced Security code scanning will not display a result whose location does not provide the URI of the artifact that contains the result.

Signed-off-by: Craig Andrews <candrews@integralblue.com>
Signed-off-by: Craig Andrews <candrews@integralblue.com>
@candrews

Copy link
Copy Markdown
Contributor Author

You'll need to fix up the input files, e.g., at src\Test.UnitTests.Sarif.Converters\TestData\HdfConverter\Inputs\ValidResults.json to adhere to the new output format.

All set! The tests are all now passing.

@candrews

Copy link
Copy Markdown
Contributor Author

Michael C. Fanning (@michaelcfanning) could you please merge this PR?

@michaelcfanning
Michael C. Fanning (michaelcfanning) deleted the hdfconverter-improvements branch July 27, 2023 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants