Skip to content

Commit a22f812

Browse files
chmoueltekton-robot
authored andcommitted
Avoid unnecessary scans for codeql on non code
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]>
1 parent fe42e6b commit a22f812

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,17 @@ name: "CodeQL"
1414
on:
1515
push:
1616
branches: [ main ]
17+
paths-ignore:
18+
- '**/*.md'
19+
- '**/*.txt'
20+
- '**/*.yaml'
1721
pull_request:
1822
# The branches below must be a subset of the branches above
1923
branches: [ main ]
24+
paths-ignore:
25+
- '**/*.md'
26+
- '**/*.txt'
27+
- '**/*.yaml'
2028
schedule:
2129
- cron: '30 20 * * 2'
2230

0 commit comments

Comments
 (0)