Skip to content

Commit

Permalink
Avoid unnecessary scans for codeql on non code
Browse files Browse the repository at this point in the history
Add some ignore paths to codeql to not do analysis on md, yaml and txt
files. Which mean if the pr/push contains only those files it will not
be run.

cf:

https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#avoiding-unnecessary-scans-of-pull-requests

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel authored and tekton-robot committed Oct 26, 2023
1 parent fe42e6b commit a22f812
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ name: "CodeQL"
on:
push:
branches: [ main ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.yaml'
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.yaml'
schedule:
- cron: '30 20 * * 2'

Expand Down

0 comments on commit a22f812

Please sign in to comment.