| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Partial review only.
Sorry, something went wrong.
There was a problem hiding this comment.
Nice!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR helps us better surface failed code scanning workflow runs by attempting to submit a SARIF file containing executionSuccessful: false in some of these cases. We take special care to ensure that we respect SARIF categories and upload: false options to avoid stale tips. This is made more difficult by the fact that these are only passed to the analyze Action. We want to handle cases where the workflow fails before the analyze step, and we don't have access to these inputs in the post-init step. Therefore we resort to a best-effort attempt at working out what the inputs were based on the workflow file and the variables we do have access to in the post-init step.
We don't to cover every case where the workflow fails here. Cases where the workflow run is cancelled or times out won't be possible to handle — we'd need a different mechanism to notify Code Scanning about these. However this PR will cover many of the cases where workflows fail so we can start providing a better experience.
Merge / deployment checklist