Skip to content

Commit

Permalink
ci: Add paths-ignore to CodeQL workflow and create config file for fi…
Browse files Browse the repository at this point in the history
…ltering
  • Loading branch information
gto90 committed Dec 22, 2024
1 parent dfbbbc5 commit b7ed70d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
paths-ignore:
- 'depends/**'
- 'contrib/**'
paths-filter:
- exclude:
- 'depends/**/*.cpp'
- 'depends/**/*.h'
- 'contrib/**/*.cpp'
- 'contrib/**/*.h'
7 changes: 7 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ concurrency:
on:
push:
branches: ["develop", "master", "release**/**/*"]
paths-ignore:
- 'depends/**'
- 'contrib/**'
pull_request:
branches: ["develop", "master", "release**/**/*"]
paths-ignore:
- 'depends/**'
- 'contrib/**'
schedule:
- cron: "0 0 * * 0"

Expand Down Expand Up @@ -78,6 +84,7 @@ jobs:
build-mode: ${{ matrix.build-mode }}
queries: ${{ matrix.language != 'actions' && 'security-extended,security-and-quality' || '' }}
dependency-caching: true
config-file: ./.github/codeql/codeql-config.yml

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
Expand Down

0 comments on commit b7ed70d

Please sign in to comment.