Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Add CodeQL workflow for GitHub code scanning #1830

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "CodeQL"

on:
push:
branches: [ "master", "2019.5-docs", "2019.6-docs", "2019.7-docs", "2019.8-docs", "2019.9-docs", "2019.10-docs", "2019.11-docs", "2020.1-docs", "2020.2-docs", "2020.3-docs", "2020.4-docs", "2020.5-docs", "2020.6-docs", "2020.7-docs", "2020.8-docs", "2020.9-docs", "2020.10-docs", "feat/new-auth-for-sumo" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "23 4 * * 2"

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

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

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- 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 }}"