Repository navigation
45 lines (45 loc) · 1.55 KB
/
Copy pathcodeql.yml
File metadata and controls
45 lines (45 loc) · 1.55 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
name: CodeQL
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '30 1 * * 1'
permissions:
contents: read
security-events: write
jobs:
analyze:
name: CodeQL
runs-on: ubuntu-26.04
strategy:
fail-fast: false
matrix:
# Both languages this repository contains. It declared `python` alone,
# and `src/patchradar/api/static/app.js` — 470 lines served to a browser
# — went unanalysed along with the template that loads it and the test
# harness that drives them.
#
# Found on 2026-09-29 by the security-posture gate, and not by looking:
# two JavaScript alerts sat open at commit b87c3b2 and could not close,
# because nothing re-analysed that language. One of them,
# `js/bad-tag-filter`, had already been fixed in the meantime and no
# scanner would ever have said so.
language: [python, javascript-typescript]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
# One category per language: they are separate analyses of the same
# commit, and sharing a category would make each one replace the
# other's results.
category: "/language:${{ matrix.language }}"