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

parser-json-sarif: initialize the imp flag #205

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

kdudka
Copy link
Member

@kdudka kdudka commented Sep 9, 2024

... to 1 if level is error. This is how csgrep ---mode=sarif encodes the imp flag. As a side effect, all findings from Snyk Code with level set to error will be marked as important. Nevertheless, this is what csmock-plugin-snyk explicitly does already: csutils/csmock#122

Resolves: https://issues.redhat.com/browse/OSH-754
Closes: #205

@kdudka kdudka requested a review from lzaoral September 9, 2024 15:37
@kdudka kdudka self-assigned this Sep 9, 2024
... to 1 if `level` is `error`.  This is how `csgrep ---mode=sarif`
encodes the `imp` flag.  As a side effect, all findings from Snyk Code
with `level` set to `error` will be marked as important.  Nevertheless,
this is what `csmock-plugin-snyk` explicitly does already:
csutils/csmock#122

Resolves: https://issues.redhat.com/browse/OSH-754
Closes: csutils#205
@kdudka
Copy link
Member Author

kdudka commented Sep 12, 2024

@lzaoral Thanks for review!

@kdudka kdudka merged commit 8e7e1ee into csutils:main Sep 12, 2024
7 of 31 checks passed
@kdudka kdudka deleted the sarif-imp branch September 12, 2024 12:45
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