Skip to content

Explain that workflows that submit sarif probably shouldn't fail #38062

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

Open
1 task done
jsoref opened this issue May 6, 2025 · 4 comments
Open
1 task done

Explain that workflows that submit sarif probably shouldn't fail #38062

jsoref opened this issue May 6, 2025 · 4 comments
Labels
code security Content related to code security content This issue or pull request belongs to the Docs Content team needs SME This proposal needs review from a subject matter expert

Comments

@jsoref
Copy link
Contributor

jsoref commented May 6, 2025

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning

What part(s) of the article would you like to see updated?

Uploading code scanning data to GitHub

Says:

GitHub can display code analysis data generated externally by a third-party tool. You can upload code analysis data with the upload-sarif action. For more information, see Uploading a SARIF file to GitHub.

It doesn't say anything about exit codes for such workflows.

(It doesn't link to the upload-sarif action, which may be for the best as using that will delay workflows by 6 seconds. -- The action is intentionally not listed in the GitHub Marketplace unlike, e.g. checkout.)

Additional information

Normally if you want to prevent a pull request from being merged, you'd have your workflow "fail" triggering an ❌.

But, if you do that for a workflow that submits sarifs (at least using some of the apis, especially the github/codeql-action/upload-sarif), then you'll get:

Image

And the status link goes to:
Image

@jsoref jsoref added the content This issue or pull request belongs to the Docs Content team label May 6, 2025
@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label May 6, 2025
@Sharra-writes Sharra-writes removed the triage Do not begin working on this issue until triaged by the team label May 7, 2025
@Sharra-writes
Copy link
Contributor

@jsoref Thanks for opening this issue! I'll get it triaged for review. Since you've opened a handful of issues this time, I'm going to see if any of them seem to be related enough to group together when I ask for an SME review, since that might help expedite things. If you have thoughts on how closely related they are, I would very much welcome the input.

@Sharra-writes Sharra-writes added code security Content related to code security needs SME This proposal needs review from a subject matter expert labels May 7, 2025
Copy link
Contributor

github-actions bot commented May 7, 2025

Thanks for opening an issue! We've triaged this issue for technical review by a subject matter expert 👀

@jsoref
Copy link
Contributor Author

jsoref commented May 7, 2025

So, these are related in that they're all sarif endpoints, but they're also quite different:

@Sharra-writes
Copy link
Contributor

I appreciate the insight! I'll get to work on those SME review requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code security Content related to code security content This issue or pull request belongs to the Docs Content team needs SME This proposal needs review from a subject matter expert
Projects
None yet
Development

No branches or pull requests

2 participants