Repository navigation
44 lines (40 loc) · 1.37 KB
/
Copy pathcodeql.yml
File metadata and controls
44 lines (40 loc) · 1.37 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
# Static analysis for the languages CI cannot otherwise reason about.
#
# The Rust sensor is covered by clippy at `-D warnings` in ci.yml. The server is Python and the
# reporting interface is hand-written JavaScript — both parse user-controlled input from the
# network (event lines, query parameters, log files) and neither had any static analysis beyond
# bandit's pattern matching.
#
# Trail data cannot affect any of this, so indicator commits do not trigger it; see ci.yml.
name: CodeQL
on:
push:
branches: [ "master" ]
paths: [ '**.py', '**.js', '.github/workflows/codeql.yml' ]
pull_request:
branches: [ "master" ]
paths: [ '**.py', '**.js', '.github/workflows/codeql.yml' ]
schedule:
# Weekly, so a newly published query finds old code without waiting for someone to touch it.
- cron: '23 4 * * 1'
permissions:
contents: read
security-events: write
jobs:
analyze:
name: analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
language: [ python, javascript ]
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- uses: github/codeql-action/analyze@v4
with:
category: /language:${{ matrix.language }}