]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: run the CodeQL action also when its configuration changes
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 7 Dec 2021 11:18:06 +0000 (12:18 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 7 Dec 2021 13:45:06 +0000 (14:45 +0100)
Just to make sure we didn't break anything.

.github/workflows/codeql-analysis.yml

index ffb9be431fc9c8890ad2ecb4a57b5697814922a2..492061353f44248dd8ef5e225db24915c8e5ccb8 100644 (file)
@@ -7,6 +7,10 @@ name: "CodeQL"
 on:
   pull_request:
     branches: [main]
+    paths:
+      - .github/codeql-config.yml
+      - .github/codeql-custom.qls
+      - .github/workflows/codeql-analysis.yml
   # 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.
@@ -20,7 +24,6 @@ jobs:
   analyze:
     name: Analyze
     runs-on: ubuntu-latest
-    if: github.event_name == 'schedule' || github.event.pull_request.user.login == 'dependabot[bot]'
     concurrency:
       group: ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }}
       cancel-in-progress: true