Skip to content

Commit 3e95091

Browse files
committed
Add test workflow for upload-sarif with quality results
1 parent 7b3d150 commit 3e95091

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed

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

Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Upload-sarif: code quality endpoint"
2+
description: "Checks that uploading SARIFs to the code quality endpoint works"
3+
versions: ["default"]
4+
installGo: "true"
5+
steps:
6+
- uses: ./../action/init
7+
with:
8+
tools: ${{ steps.prepare-test.outputs.tools-url }}
9+
languages: cpp,csharp,java,javascript,python
10+
config-file: ${{ github.repository }}/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
11+
quality-queries: code-quality
12+
- name: Build code
13+
shell: bash
14+
run: ./build.sh
15+
# Generate some SARIF we can upload with the upload-sarif step
16+
- uses: ./../action/analyze
17+
with:
18+
ref: 'refs/heads/main'
19+
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'
20+
upload: never
21+
- uses: ./../action/upload-sarif
22+
with:
23+
ref: 'refs/heads/main'
24+
sha: '5e235361806c361d4d3f8859e3c897658025a9a2'

0 commit comments

Comments
 (0)