Create .github/workflows/codeql.yml

This commit is contained in:
JonnyWong16 2023-03-03 11:07:45 -08:00 committed by GitHub
parent d240984c27
commit 0925234f06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

37
.github/workflows/codeql.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: CodeQL
on:
push:
branches: [master, beta, nightly]
pull_request:
branches: [nightly]
schedule:
- cron: '05 10 * * 1'
jobs:
codeql-analysis:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ['javascript', 'python']
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"