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

Add sarif support #918

Merged
merged 6 commits into from
Aug 16, 2021
Merged

Add sarif support #918

merged 6 commits into from
Aug 16, 2021

Conversation

montyly
Copy link
Member

@montyly montyly commented Aug 16, 2021

This PR contains the changes made by @bernard-wagner in #903, plus a couple of minor improvements

The steps to use Sarif are the same as in #903:

$ slither [path to target] --sarif slither.sarif
$ curl -u $USER:$TOKEN -X POST -H "Accept: application/vnd.github.v3+json"  https://api.github.com/repos/$ORG/$REPO/code-scanning/sarifs  -d '{"commit_sha":"$COMMIT","ref":"refs/heads/$BRANCH","sarif":"'$(gzip -c slither.sarif | base64 -w0)'"}'

In the long term, we probably want to move the sarif conversion to the Output class; but for now I will keep it as it is

@montyly montyly merged commit b3f6cee into dev Aug 16, 2021
@montyly montyly deleted the dev-sarif branch August 16, 2021 11:42
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