From: Frantisek Sumsal Date: Tue, 13 Sep 2022 17:11:25 +0000 (+0200) Subject: ci: run CodeQL on every PR X-Git-Tag: v252-rc1~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbe25d0dccdd3f2901a1e74a665c068f42dae9f5;p=thirdparty%2Fsystemd.git 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. --- diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 73bea19b135..b31dbb8741f 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