Skip to content

Commit

Permalink
Exclude .g.cs source from CodeQL since we can't fix the SDK output
Browse files Browse the repository at this point in the history
  • Loading branch information
jas88 committed Jun 24, 2024
1 parent 9b6fd82 commit 132ec17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,19 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
upload: false
output: sarif-results

- name: filter-sarif
uses: advanced-security/filter-sarif@v1
with:
patterns: |
+**/*
-**/*.g.cs
input: sarif-results/csharp.sarif
output: sarif-results/csharp.sarif

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/csharp.sarif

0 comments on commit 132ec17

Please sign in to comment.