-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.51 KB
/
Copy pathcodeql.yml
File metadata and controls
50 lines (42 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# GitHub's code scanner. Free on public repositories.
#
# Worth having on this project specifically because of what it handles:
# untrusted video titles and transcripts reaching FFmpeg arguments and file
# paths, and a local HTTP server that must stay bound to localhost. Those are
# exactly the injection and path-traversal patterns CodeQL is good at.
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly, so newly-published rules find old code. Monday morning.
- cron: '17 6 * * 1'
permissions:
contents: read
security-events: write
jobs:
analyze:
name: Analyze ${{ matrix.language }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [python, javascript-typescript]
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v4.37.3
with:
language: ${{ matrix.language }}
# security-and-quality is noisier than the default but catches the
# sloppy-code class too, which matters more on a project that will
# take outside contributions.
queries: security-and-quality
# Keeps vendored third-party source out of the results — see the
# config for why those findings are not actionable here.
config-file: ./.github/codeql/codeql-config.yml
- uses: github/codeql-action/autobuild@v4.37.3
- uses: github/codeql-action/analyze@v4.37.3
with:
category: /language:${{ matrix.language }}