Browse Source

Fixes #1897. Update CodeQL workflows (#1905)

Tig Kindel 3 years ago
parent
commit
04c1dfd413
1 changed files with 18 additions and 1 deletions
  1. 18 1
      .github/workflows/codeql-analysis.yml

+ 18 - 1
.github/workflows/codeql-analysis.yml

@@ -1,10 +1,27 @@
+# For more info see https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#scanning-on-push
+
 name: "Code scanning"
 name: "Code scanning"
 
 
 on:
 on:
   push:
   push:
+    branches: [main]
+    paths-ignore:
+      - '**/*.md'
+      - '**/*.txt'
+      - '**/*.html'
+      - docs
+      - docfx
   pull_request:
   pull_request:
+    branches: [main]
+    paths-ignore:
+      - '**/*.md'
+      - '**/*.txt'
+      - '**/*.html'
+      - docs
+      - docfx
+  # Scan every Monday
   schedule:
   schedule:
-    - cron: '0 4 * * 0'
+    - cron: '20 14 * * 1'      
 
 
 jobs:
 jobs:
   CodeQL-Build:
   CodeQL-Build: