diff options
author | lgtm-com[bot] <43144390+lgtm-com[bot]@users.noreply.github.com> | 2022-11-11 09:17:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 09:17:31 -0800 |
commit | 2cb6a28f39fa23b5a3a714c317d71296b34c7824 (patch) | |
tree | 785849c435397643891d506d34a7caa4419b09b7 | |
parent | 285e62559e81f3a106426d54850755bee0f53bd9 (diff) |
Add CodeQL workflow for GitHub code scanning (#1381)
Co-authored-by: LGTM Migrator <lgtm-migrator@users.noreply.github.com>
-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..c9232c71 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: "29 13 * * 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 + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{ matrix.language }}" |