Skip to content

Commit

Permalink
Add CodeQL scanning for Python and JS/TS (#484)
Browse files Browse the repository at this point in the history
This scans the Python and javascript/typescript files in the repository.
At the moment this is mostly a no-op but it provides a decent foundation
for future changes around documentation.
  • Loading branch information
aaronmondal committed Dec 15, 2023
1 parent 2de8867 commit 34f0aa0
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/codeql.yaml
@@ -0,0 +1,43 @@
---
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
# Non-peak hour 1:21 AM on Saturdays.
- cron: '21 1 * * 6'

permissions: read-all

jobs:
analyze:
name: Analyze
runs-on: ['ubuntu-22.04']
timeout-minutes: 360
permissions:
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript', 'python' ]

steps:
- name: Checkout
uses: >- # v4.1.1
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Initialize CodeQL
uses: >- # v3.22.11
github/codeql-action/init@b374143c1149a9115d881581d29b8390bbcbb59c
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: >- # v3.22.11
github/codeql-action/analyze@b374143c1149a9115d881581d29b8390bbcbb59c
with:
category: "/language:${{matrix.language}}"

0 comments on commit 34f0aa0

Please sign in to comment.