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

[Fall 2021] Step 3: Add support for --output=sarif to pyre #50

Closed
r0rshark opened this issue Aug 13, 2021 · 5 comments
Closed

[Fall 2021] Step 3: Add support for --output=sarif to pyre #50

r0rshark opened this issue Aug 13, 2021 · 5 comments
Assignees
Labels
Fall 2021 Issues related to the Pysa project for MLH Fellowship cohort of Fall 2021 step 3

Comments

@r0rshark
Copy link
Collaborator

facebook#427 added support for surfacing type errors inline on github through a script that takes the output of pyre --output=json and converts it into SARIF (https://github.com/microsoft/sarif-tutorials), the file format GitHub understands. Ideally there should be an easier way for projects to set up the integration by just running pyre --output=sarif. This task is about adding that support to pyre.

References:
GitHub CI setup and script generating SARIF format: facebook#427
Pyre printing logic:
https://github.com/MLH-Fellowship/pyre-check/blob/master/client/error.py#L244

@abishekvashok
Copy link

I got this :)

@abishekvashok abishekvashok self-assigned this Aug 14, 2021
@0xedward 0xedward added the Fall 2021 Issues related to the Pysa project for MLH Fellowship cohort of Fall 2021 label Sep 20, 2021
@0xedward 0xedward changed the title [Summer 2021] Add support for --output=sarif to pyre [Fall 2021] Step 2: Add support for --output=sarif to pyre Sep 20, 2021
@0xedward
Copy link
Collaborator

Still working out Github Marketplace set up internally for this. We should be able to land @abishekvashok's PR after that

@0xedward 0xedward changed the title [Fall 2021] Step 2: Add support for --output=sarif to pyre [Fall 2021] Step 3: Add support for --output=sarif to pyre Sep 27, 2021
@abishekvashok
Copy link

abishekvashok commented Sep 29, 2021

@0xedward I am sorry, but I saw the other issue now and was wondering as to why we need a repo for this? I am asking cause I believe we need a repo for the pysa action but are we creating an action for pyre as well? (In addition to pysa?)

I guess this issue was intended for pyre so that we could have sarif output natively rather than use a script for the GitHub actions in the pyre check repository.

@0xedward
Copy link
Collaborator

0xedward commented Oct 6, 2021

@abishekvashok Oh, sorry, just saw this now!

I am asking cause I believe we need a repo for the pysa action but are we creating an action for pyre as well?

Yep, that's the plan! :)

I guess this issue was intended for pyre so that we could have sarif output natively rather than use a script for the GitHub actions in the pyre check repository.

Ah, that's right! I commented about the Github action for Pyre here, since that was the original goal to add --output=sarif to Pyre, but we can create a separate issue for the Pyre github action.

I'll check to see what is going on with the PR and if there's anything blocking it

@abishekvashok
Copy link

Hey @0xedward it's okay - I figured it out from yesterday's 1:1, it's an old comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fall 2021 Issues related to the Pysa project for MLH Fellowship cohort of Fall 2021 step 3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants