Skip to content
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

Fix Sarif file uri path invalid in Windows and update go-sarif to latest #1070

Merged
merged 6 commits into from
Dec 10, 2021
Merged

Fix Sarif file uri path invalid in Windows and update go-sarif to latest #1070

merged 6 commits into from
Dec 10, 2021

Conversation

shaopeng-gh
Copy link
Contributor

@shaopeng-gh shaopeng-gh commented Oct 26, 2021

The locations should conform with https://tools.ietf.org/html/rfc3986,
we currently get "file://C:\\reporoot\\input\\azuredeploy.json" in windows
in Linux it is correct for me, "file:///home/lsp/terrascan/input/azuredeploy.json"
The correct uri path for Windows should be like "file:///C:/reporoot/input/azuredeploy.json"

@codecov
Copy link

codecov bot commented Nov 1, 2021

Codecov Report

Merging #1070 (520dd0e) into master (2cde272) will decrease coverage by 0.03%.
The diff coverage is 76.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1070      +/-   ##
==========================================
- Coverage   78.62%   78.59%   -0.04%     
==========================================
  Files         238      238              
  Lines        6494     6502       +8     
==========================================
+ Hits         5106     5110       +4     
- Misses       1075     1077       +2     
- Partials      313      315       +2     
Impacted Files Coverage Δ
pkg/utils/path.go 89.47% <60.00%> (-2.84%) ⬇️
pkg/writer/sarif.go 81.81% <83.33%> (-2.80%) ⬇️

@shaopeng-gh shaopeng-gh changed the title Fix Sarif file uri path invalid in Windows Fix Sarif file uri path invalid in Windows and update go-sarif to latest Nov 5, 2021
@sonarcloud
Copy link

sonarcloud bot commented Nov 5, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@shaopeng-gh
Copy link
Contributor Author

@kanchwala-yusuf let me know if looks good, thanks!

@shaopeng-gh
Copy link
Contributor Author

shaopeng-gh commented Dec 3, 2021

@cesar-rodriguez @kanchwala-yusuf let me know if anyone can help with the review, thanks!

@cesar-rodriguez
Copy link
Contributor

@shaopeng-gh thanks again for fixing this!

@cesar-rodriguez cesar-rodriguez merged commit 790b1dd into tenable:master Dec 10, 2021
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.

None yet

2 participants