diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index faee24d8b7a..5170bde22e2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -2,12 +2,17 @@ on: workflow_dispatch: schedule: - cron: 0 6 * * * + push: + branches: + - main + paths: + - '.github/workflows/codeql-analysis.yml' name: codeql analysis jobs: scan_linux: name: 'Linux Q${{matrix.quantum}}-x64 hdri=${{matrix.hdri}} (${{matrix.modules}})' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: security-events: write @@ -24,6 +29,13 @@ jobs: with: fetch-depth: 2 + - name: Install dependencies + run: | + set -e + export DEBIAN_FRONTEND=noninteractive + sudo apt-get update -y + sudo apt-get install -y libltdl-dev + - name: Configure ImageMagick run: | export CFLAGS="-Wno-deprecated-declarations"