diff options
author | lgtm-com[bot] <43144390+lgtm-com[bot]@users.noreply.github.com> | 2022-12-07 14:48:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 14:48:03 +0100 |
commit | d447ce5732a7a24a94e6cc2d3c218c35edf06050 (patch) | |
tree | 1ceb8c4d9e507a9929c4fd905f96c7be57608b42 /.github | |
parent | 99de4691b4671cdd0b30cf8ebf0422b1daf13cd4 (diff) | |
download | libarchive-d447ce5732a7a24a94e6cc2d3c218c35edf06050.tar.gz |
Add CodeQL workflow for GitHub code scanning (#1800)
Co-authored-by: LGTM Migrator <lgtm-migrator@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/codeql.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..1f219fc6 --- /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 }}" |