Skip to content

Commit

Permalink
try to use sarif filter (#27)
Browse files Browse the repository at this point in the history
* try to use sarif filter
  • Loading branch information
linxie47 authored Dec 17, 2024
1 parent 5308224 commit 8623875
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ name: "CodeQL Advanced"
on:
push:
branches: [ "master" ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
pull_request:
branches: [ "master" ]
paths-ignore:
Expand Down Expand Up @@ -100,3 +103,26 @@ jobs:
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11
with:
category: "/language:${{matrix.language}}"
output: results
upload: failure-only

- name: Filter Sarif
uses: advanced-security/filter-sarif@v1
with:
patterns: |
-ivsr_ffmpeg_plugin/ffmpeg/**/*
-ivsr_ov/based_on_openvino_2022.3/openvino/**/*
input: results/cpp.sarif
output: results/cpp.sarif

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

- name: Upload loc as a Build Artifact
uses: actions/upload-artifact@v4
with:
name: ivsr-sarif-results
path: results
retention-days: 1

0 comments on commit 8623875

Please sign in to comment.