Skip to content

Commit a396574

Browse files
committed
don't scan _deps with Trivy or CodeQL
1 parent 568a96a commit a396574

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.github/codeql/codeql-config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths-ignore:
2+
- '**/_deps/**'

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7
2828
with:
2929
languages: cpp, python
30+
config-file: ./.github/codeql/codeql-config.yml
3031

3132
- name: Install pip packages
3233
run: pip install -r third_party/requirements.txt

.github/workflows/trivy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
format: 'sarif'
3636
output: 'trivy-results.sarif'
3737
exit-code: 1 # Fail if issue found
38+
skip-dirs: '**/_deps/**'
3839
# file with suppressions: .trivyignore (in root dir)
3940

4041
- name: Print report and trivyignore file

0 commit comments

Comments
 (0)