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.
This commit is contained in:
committed by
Yu Watanabe
parent
38429cb1e3
commit
cbe25d0dcc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user