From: lgtm-com[bot] <43144390+lgtm-com[bot]@users.noreply.github.com> Date: Wed, 7 Dec 2022 13:48:03 +0000 (+0100) Subject: Add CodeQL workflow for GitHub code scanning (#1800) X-Git-Tag: v3.6.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d447ce5732a7a24a94e6cc2d3c218c35edf06050;p=thirdparty%2Flibarchive.git Add CodeQL workflow for GitHub code scanning (#1800) Co-authored-by: LGTM Migrator --- diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..1f219fc69 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "master", "3.5" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: "49 4 * * 2" + +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 }}"