codeql: Only run codeql analysis when Go/JS files change
We skip codeql analysis when only markdown files change; but, instead,
we should only run it when Go or JS (or JSX) files change.
This change also removes the scheduled cron run of codeql, as we don't
really get any benefit from it.
@@ -5,17 +5,17 @@ name: CodeQL
on:
push:
branches: [ main, stable-* ]
- paths-ignore:
- - '*.md'
- - '**/*.md'
+ paths:
+ - '**/*.go'
+ - '**/*.js'
+ - '**/*.jsx'
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, stable-* ]
- paths-ignore:
- - '*.md'
- - '**/*.md'
- schedule:
- - cron: '40 5 * * 3'
+ paths:
+ - '**/*.go'
+ - '**/*.js'
+ - '**/*.jsx'
jobs:
analyze:
