docs icon indicating copy to clipboard operation
docs copied to clipboard

Explain that workflows that submit sarif probably shouldn't fail

Open jsoref opened this issue 7 months ago • 11 comments

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 avatar May 06 '25 00:05 jsoref

@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 avatar May 07 '25 17:05 Sharra-writes

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

github-actions[bot] avatar May 07 '25 17:05 github-actions[bot]

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

  • #38085 this appears to be a bug in the implementation, so I'd expect a SME to talk to engineering and change the internal w/o needing a doc change. Note that for ::error::/::warning::/::notice:: the limits are at least sort of per category (I could find the doc references, although from memory the behavior is also quite odd). It's a tension between two approaches.
  • #38062 this is a design thing -- the SME would have to know how this is supposed to work -- I'm really grasping at straws
  • #38037 this would require an SME to decide to provide the information required to write a doc (I could provide something based on my implementation, but that isn't a great idea).

jsoref avatar May 07 '25 18:05 jsoref

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

Sharra-writes avatar May 07 '25 19:05 Sharra-writes

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Jun 05 '25 16:06 github-actions[bot]

This is a gentle bump for the docs team that this issue is waiting for technical review.

github-actions[bot] avatar Jul 04 '25 16:07 github-actions[bot]

A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.

github-actions[bot] avatar Aug 05 '25 16:08 github-actions[bot]

This is a gentle reminder for the docs team that this issue is waiting for technical review by a subject matter expert (SME).

github-actions[bot] avatar Sep 03 '25 16:09 github-actions[bot]

A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.

github-actions[bot] avatar Oct 07 '25 16:10 github-actions[bot]

This is a gentle reminder for the docs team that this issue is waiting for technical review by a subject matter expert (SME).

github-actions[bot] avatar Nov 05 '25 16:11 github-actions[bot]