-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CodeQL scanning for Python and JS/TS (#484)
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
1 parent
2de8867
commit 34f0aa0
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}" |