Ver código fonte

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.
Julien Voisin 1 ano atrás
pai
commit
bbfe39722a
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      .github/workflows/codeql-analysis.yml

+ 8 - 0
.github/workflows/codeql-analysis.yml

@@ -5,9 +5,17 @@ permissions: read-all
 on:
   push:
     branches: [ main ]
+    paths:
+      - '**.js'
+      - '**.go'
+      - '!**_test.go'
   pull_request:
     # The branches below must be a subset of the branches above
     branches: [ main ]
+    paths:
+      - '**.js'
+      - '**.go'
+      - '!**_test.go'
   schedule:
     - cron: '45 22 * * 3'