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

Github actions fix: Have some output for errors #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abishekvashok
Copy link
Contributor

Pre-submission checklist

  • I've ran the following linters locally and fixed lint errors related to the files I modified in this PR
    • black .
    • usort format .
    • flake8
  • I've installed dev dependencies pip install -r requirements-dev.txt and completed the following:
    • I've ran tests with ./scripts/run-tests.sh and made sure all tests are passing

Summary

SARIF expects some information about tooling when there are no issues, SAPP currently doesn't print any information and exits silently in case there are no issues after applying filters.

Github Actions expects the output to conform to SARIF. Hence, return empty results list along with tooling information as expected by SARIF.

For reference, see: https://github.com/facebook/pysa-action/actions/runs/4534111680
is crashing.

Test Plan

Before
https://github.com/facebook/pysa-action/actions/runs/4534111680

Screenshot 2023-03-28 at 4 33 51 PM

After

Screenshot 2023-03-28 at 4 34 05 PM

Screenshot 2023-03-28 at 4 33 59 PM

Fixes possible errors from happening in Github workflows that make use of sapp-action or pysa-action

SARIF expects some information about tooling when there are no issues,
SAPP currently doesn't print any information and exits silently in case
there are no issues after applying filters.

Github Actions expects the output to conform to SARIF. Hence, return
empty results list along with tooling information as expected by SARIF.

Signed-off-by: Abishek V Ashok <[email protected]>
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants