From: LGTM Migrator Date: Wed, 9 Nov 2022 11:28:47 +0000 (+0000) Subject: Add CodeQL workflow for GitHub code scanning X-Git-Tag: 2.0.7~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44a4d00f353dcbcc2ffd2ec84922d1b09ec2a588;p=thirdparty%2Fzlib-ng.git Add CodeQL workflow for GitHub code scanning --- diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..1cfa4d7f --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + schedule: + - cron: "27 17 * * 0" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ cpp ] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{ matrix.language }}"