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

Correct issue with SARIF dir scan relative paths #682

Merged
merged 4 commits into from
Mar 21, 2022

Conversation

kzantow
Copy link
Contributor

@kzantow kzantow commented Mar 21, 2022

SARIF is used for submitting to GitHub's security alerts. There is an issue with directory scans that results in relative paths being prefixed by /, resulting in the file "not found" in the repository when looking at the Code scanning alerts page.

Signed-off-by: Keith Zantow <kzantow@gmail.com>
grype/presenter/sarif/presenter.go Outdated Show resolved Hide resolved
grype/presenter/sarif/presenter.go Show resolved Hide resolved
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow requested review from a team and luhring March 21, 2022 18:55
@kzantow kzantow merged commit 78cd067 into anchore:main Mar 21, 2022
@kzantow kzantow deleted the sarif-dir-scan-path-fix branch March 21, 2022 19:35
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