From b3a0063583a29af2d233e8a2023e7ca964b27ed6 Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 26 Sep 2024 15:15:42 +0200 Subject: [PATCH] [INFRA] Add CodeQL --- .github/workflows/ci_codeql.yml | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/ci_codeql.yml diff --git a/.github/workflows/ci_codeql.yml b/.github/workflows/ci_codeql.yml new file mode 100644 index 0000000..5cf9533 --- /dev/null +++ b/.github/workflows/ci_codeql.yml @@ -0,0 +1,49 @@ +# SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin +# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik +# SPDX-License-Identifier: CC0-1.0 + +name: CodeQL + +on: + schedule: + - cron: "0 6 * * SAT" + workflow_dispatch: + +concurrency: + group: codeql-${{ github.ref }} + cancel-in-progress: true + +env: + CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: false + TZ: Europe/Berlin + +defaults: + run: + shell: bash -Eeuxo pipefail {0} + +jobs: + codeql: + name: CodeQL + runs-on: ubuntu-latest + permissions: + security-events: write + container: + image: ghcr.io/seqan/gcc-14 + volumes: + - /home/runner:/home/runner + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: cpp + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:cpp"