Skip to content
Prev Previous commit
Next Next commit
Update upload-quality-sarif check to only use code-quality
  • Loading branch information
mbg committed Sep 19, 2025
commit e33b0ab3ac30b90dff43239fd6ba035a77c2fed2
8 changes: 5 additions & 3 deletions .github/workflows/__upload-quality-sarif.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions pr-checks/checks/upload-quality-sarif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ steps:
with:
tools: ${{ steps.prepare-test.outputs.tools-url }}
languages: cpp,csharp,java,javascript,python
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
analysis-kinds: code-scanning,code-quality
analysis-kinds: code-quality
- name: Build code
run: ./build.sh
# Generate some SARIF we can upload with the upload-sarif step
Expand All @@ -18,6 +17,10 @@ steps:
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
upload: never
- uses: ./../action/upload-sarif
id: upload-sarif
with:
ref: 'refs/heads/main'
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
- name: "Check output from `upload-sarif` step"
if: fromJSON(steps.upload-sarif.sarif-ids)[0].analysis != 'code-quality'
Comment thread
mbg marked this conversation as resolved.
Outdated
run: exit 1