Skip to content

Commit

Permalink
chore(ci) ignore test assets directories in CodeQL scans
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Feb 7, 2024
1 parent 94e5d09 commit ce785b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/actions/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
paths:
- src/
- lib/
paths-ignore:
- work/
- t/
6 changes: 4 additions & 2 deletions .github/workflows/job-codeql-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
uses: github/codeql-action/init@v2
with:
languages: ${{ inputs.language }}
config-file: ./.github/actions/codeql-config.yml
- name: 'Setup cache - work/ dir'
uses: actions/cache@v3
if: ${{ !env.ACT }}
Expand Down Expand Up @@ -69,8 +70,9 @@ jobs:
uses: advanced-security/filter-sarif@v1
with:
patterns: |
-**/* # exclusion: DENY ALL
src/**/* # inclusion
-**/* # exclusion: DENY ALL
+src/**/* # inclusion
+lib/**/* # inclusion
input: sarif-results/${{ steps.sarif-filename.outputs.name }}.sarif
output: sarif-results/${{ steps.sarif-filename.outputs.name }}.sarif
- name: Upload SARIF
Expand Down

0 comments on commit ce785b7

Please sign in to comment.