Skip to content

Commit

Permalink
Add CodeQL workflow for GitHub code scanning (#273)
Browse files Browse the repository at this point in the history
* Add CodeQL workflow for GitHub code scanning

* 🧹 Deactivate analyzing of all python dependencies

---------

Co-authored-by: LGTM Migrator <[email protected]>
Co-authored-by: s-weigand <[email protected]>
  • Loading branch information
3 people authored Mar 28, 2023
1 parent df03706 commit cb99897
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "CodeQL"

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "15 2 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [python]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
setup-python-dependencies: false

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"

0 comments on commit cb99897

Please sign in to comment.