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

Create pull request based on data in SARIF file #1043

Open
varunsh-coder opened this issue Apr 26, 2022 · 2 comments
Open

Create pull request based on data in SARIF file #1043

varunsh-coder opened this issue Apr 26, 2022 · 2 comments

Comments

@varunsh-coder
Copy link

The ossf/scorecard project will add recommended fixes for security issues in the SARIF file. In such cases,

  1. Is it possible to show a "Copy code snippet" button in the SARIF view in GitHub? So, the developer can copy the fixed file, and paste it in their code.
  2. Is it possible to have a "Create Pull Request" button feature that will create a PR based on the fix in the SARIF file?

It is possible to create an OAuth/Github App to create the PR, but the app will need write access to the repo (to create a branch), and we are trying to avoid creating an App with write access to the repo. Would be great if there was direct integration in the GitHub Code Scanning UI to create a PR/ enable copying code based on metadata in the SARIF file.

/cc @laurentsimon

@MathiasVP
Copy link
Contributor

Hi @varunsh-coder,

Thanks for your issue. These are all very good ideas, and I'll bring them to the appropriate engineering team.

@laurentsimon
Copy link

/cc @josepalafox

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

No branches or pull requests

3 participants