Skip to content

Commit bbfe397

Browse files
authored
ci: tighten the CodeQL rules
- don't run CodeQL on test files - don't run CodeQL if no `.go` nor `.js` file have been modified.
1 parent f3989cd commit bbfe397

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/codeql-analysis.yml

+8
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ permissions: read-all
55
on:
66
push:
77
branches: [ main ]
8+
paths:
9+
- '**.js'
10+
- '**.go'
11+
- '!**_test.go'
812
pull_request:
913
# The branches below must be a subset of the branches above
1014
branches: [ main ]
15+
paths:
16+
- '**.js'
17+
- '**.go'
18+
- '!**_test.go'
1119
schedule:
1220
- cron: '45 22 * * 3'
1321

0 commit comments

Comments
 (0)