Skip to content

Commit 79b45c8

Browse files
committed
Update upload-quality-sarif check to only use code-quality
1 parent b3b9bca commit 79b45c8

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/__upload-quality-sarif.yml

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/upload-quality-sarif.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ steps:
77
with:
88
tools: ${{ steps.prepare-test.outputs.tools-url }}
99
languages: cpp,csharp,java,javascript,python
10-
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
11-
analysis-kinds: code-scanning,code-quality
10+
analysis-kinds: code-quality
1211
- name: Build code
1312
run: ./build.sh
1413
# Generate some SARIF we can upload with the upload-sarif step
@@ -18,6 +17,10 @@ steps:
1817
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
1918
upload: never
2019
- uses: ./../action/upload-sarif
20+
id: upload-sarif
2121
with:
2222
ref: 'refs/heads/main'
2323
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
24+
- name: "Check output from `upload-sarif` step"
25+
if: fromJSON(steps.upload-sarif.sarif-ids)[0].analysis != 'code-quality'
26+
run: exit 1

0 commit comments

Comments
 (0)