Open WillBartee opened 2 years ago
+1 Versions: snyk-to-html: v2.3.2 snyk: 1.790.0
I am seeing the same behavior. Although the previous version of snyk-to-html didn't have this issue 2.3.1
snyk code test scan_folder/ --sarif | snyk-to-html > report-code.html
events.js:292
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open '/Users/Desktop/work/repos/salesforce/JiraIntegration.cls'
Emitted 'error' event on ReadStream instance at:
at internal/fs/streams.js:147:14
at FSReqCallback.oncomplete (fs.js:171:23) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/Desktop/work/repos/salesforce/JiraIntegration.cls'
}
Current Behavior
Multiple errors are printed to the console for each vulnerability when running
snyk-to-html
outside of the scanned projects root directory and using the output ofsnyk code test...
.In addition to the errors, the "Data Flow" portion of the resulting HTML does not correctly display the vulnerable code.
Tested versions
How to Reproduce
Example Output
Expected/Desired Behavior
uriBaseId
referenced in the SARIF output as%SRCROOT%