From d55d54db7d126ee212ad62b5e3711a72c8883af2 Mon Sep 17 00:00:00 2001 From: PeterPetrik Date: Thu, 12 Sep 2024 15:54:54 +0200 Subject: [PATCH] try codeql --- .github/workflows/codeql.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..ba06a3750 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,40 @@ +name: "CodeQL" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: '45 16 * * 3' + +jobs: + code-ql: + name: Analyze + runs-on: 'ubuntu-latest' + timeout-minutes: 360 + permissions: + security-events: write + + strategy: + fail-fast: false + matrix: + language: + - 'c-cpp' + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file