-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan Generated SARIF file invalid #2135
Comments
Hi @rseeton, thank you for reporting this issue! |
Hi @rseeton, v2.47.0 has been released and should fix the Sarif generation, it should be valid and contain much more information now. let us know if there are any issues left. |
Hi @attiasas Steps to reproduce:
Additionally a typo is noticed for the tool name (missing 'n' in 'Sca'). "name": "JFrog Xray Sca", |
@davidka91, thank you for bringing this issue to my attention. I have identified some of the issues that causes your output to fail. In addition "Sca" = "software component analysis" We will consider renaming it to "SCA" or something more descriptive. |
@attiasas - Excellent, thanks for the updates. One outstanding issue: Running the generated SARIF file through the JSON Validator ( https://www.jsonschemavalidator.net/ ), the system is failing on the follwing snippet:
Message:
|
Hi @rseeton and @davidka91 CLI v2.49.0 has been released and should fix the issues raised here. |
Resolved in 2.50.2 |
Describe the bug
SARIF files generated from the jf scan command are not Valid SARIF files and are not interoperable with other tools (i.e. GitHub Advanced Security)
Current behavior
Generation of a SARIF file from our package completes successfully ( jf_scan_sarif.txt):
jf s ./tangerine-release*.tar.gz --format sarif
However, the resulting SARIF file (attached) fails the SARIF file validation and cannot be loaded to the target system (GHAS in our case).
We have analyzed the resulting file using these sites, which provide notes on the validation failures:
https://sarifweb.azurewebsites.net/Validation
https://www.jsonschemavalidator.net/
Reproduction steps
Scan package
Save SARIF format output
Analyze SARIF output
Expected behavior
SARIF file generated should meet the SARIF v2.1.0 specification to allow inter-operability.
JFrog CLI version
jf version 2.45.0
Operating system type and version
Ubuntu 20.0.4
JFrog Artifactory version
Enterprise Plus 7.55.10 rev 75510900
JFrog Xray version
xray_version:3.65.2 xray_revision:bca527a
The text was updated successfully, but these errors were encountered: