Skip to content

Commit 47cb0d2

Browse files
authored
Add CodeQL scanning for Python and JS/TS (#16)
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.
1 parent 449376b commit 47cb0d2

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/codeql.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: "CodeQL"
3+
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
schedule:
10+
# Non-peak hour 1:21 AM on Saturdays.
11+
- cron: '21 1 * * 6'
12+
13+
permissions: read-all
14+
15+
jobs:
16+
analyze:
17+
name: Analyze
18+
runs-on: ['ubuntu-22.04']
19+
timeout-minutes: 360
20+
permissions:
21+
security-events: write
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
language: [ 'javascript-typescript', 'python' ]
27+
28+
steps:
29+
- name: Checkout
30+
uses: >- # v4.1.1
31+
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
32+
33+
- name: Initialize CodeQL
34+
uses: >- # v3.22.11
35+
github/codeql-action/init@b374143c1149a9115d881581d29b8390bbcbb59c
36+
with:
37+
languages: ${{ matrix.language }}
38+
39+
- name: Perform CodeQL Analysis
40+
uses: >- # v3.22.11
41+
github/codeql-action/analyze@b374143c1149a9115d881581d29b8390bbcbb59c
42+
with:
43+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)