Move core upload-sarif logic to upload-sarif module

Note that this also fixes the format of the `sarif-ids` outputs to match what is documented
This commit is contained in:
Michael B. Gale
2025-09-29 08:57:52 +01:00
parent 5fc9e66105
commit 9f452fad0f
5 changed files with 119 additions and 79 deletions

View File

@@ -22,5 +22,5 @@ steps:
ref: 'refs/heads/main'
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
- name: "Check output from `upload-sarif` step"
if: fromJSON(steps.upload-sarif.outputs.sarif-ids)[0].analysis != 'code-quality'
if: !(fromJSON(steps.upload-sarif.outputs.sarif-ids).code-quality)
run: exit 1