Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before this fix the
--severity
flag and values were not added to the sarif input. Hence, when a default value of 'CRITICAL,HIGH' was supplied, it would simply be ignored and report everything. The result is producing a bunch of noisy alerts, and anin't nobody got time for that!Before the fix:
![sarif-no-severity-on-main](https://private-user-images.githubusercontent.com/1355145/322605106-86b1ebbc-568d-415e-8bcd-8549a70140ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTEzODQsIm5iZiI6MTczODg1MTA4NCwicGF0aCI6Ii8xMzU1MTQ1LzMyMjYwNTEwNi04NmIxZWJiYy01NjhkLTQxNWUtOGJjZC04NTQ5YTcwMTQwZWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMTQxMTI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWJhNWNkMDNhMmFiYjdmMTk0MTViMTVmOGY4YzBiNWM0Yzk2MjlmY2I5ZTc3ZmVlNDVmNmJlMTkzOGNhYjcyNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.3kb23TkmXmRE_onMwyvMeLodZlxN2O1t6BhMRjyEiS4)
with this PR fix:
![austimkelly-severity-sarif-fix](https://private-user-images.githubusercontent.com/1355145/322605141-053bf220-5c48-4e5b-9839-75c0269345cf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTEzODQsIm5iZiI6MTczODg1MTA4NCwicGF0aCI6Ii8xMzU1MTQ1LzMyMjYwNTE0MS0wNTNiZjIyMC01YzQ4LTRlNWItOTgzOS03NWMwMjY5MzQ1Y2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMTQxMTI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDI3YTgxOGFhNWRmOGVjMmIyMjI3YzBhYjgzZGY5NmZhYmIzNjQ3MDc2ODlhNmE5MWQxZDM0NzhkZmY4N2Q0NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Z6qO2QHTtqje-VYc3yU81N-QODcI-kTtERJQ5G7C2XA)