From cbe25d0dccdd3f2901a1e74a665c068f42dae9f5 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Tue, 13 Sep 2022 19:11:25 +0200 Subject: [PATCH] ci: run CodeQL on every PR 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 | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 73bea19b13..b31dbb8741 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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