]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: run CodeQL on every PR
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 13 Sep 2022 17:11:25 +0000 (19:11 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Sep 2022 18:55:16 +0000 (03:55 +0900)
Since LGTM is no longer enabled for the systemd repo (as it's going to
be discontinued by the EOY), let's run CodeQL on every PR instead to
replace it.

.github/workflows/codeql-analysis.yml

index 73bea19b13574dec4295e678546c73a21a7082fa..b31dbb8741f7e44638e7702eb69d9931bf202f5c 100644 (file)
@@ -6,18 +6,9 @@ name: "CodeQL"
 
 on:
   pull_request:
-    branches: [main]
-    paths:
-      - .github/codeql-config.yml
-      - .github/codeql-custom.qls
-      - .github/workflows/codeql-analysis.yml
-      - .github/workflows/requirements.txt
-      - .github/workflows/unit_tests.sh
-  # It takes the workflow approximately 30 minutes to analyze the code base
-  # so it doesn't seem to make much sense to trigger it on every PR or commit.
-  # It runs daily at 01:00 to avoid colliding with the Coverity workflow.
-  schedule:
-    - cron: '0 1 * * *'
+    branches:
+      - main
+      - v[0-9]+-stable
 
 permissions:
   contents: read
@@ -36,7 +27,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        language: [ 'cpp', 'python' ]
+        language: ['cpp', 'python']
 
     steps:
     - name: Checkout repository