Explain that workflows that submit sarif probably shouldn't fail #38062
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
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:
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:
And the status link goes to:

The text was updated successfully, but these errors were encountered: