-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (54 loc) · 1.75 KB
/
Copy pathcodeql.yml
File metadata and controls
59 lines (54 loc) · 1.75 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
51
52
53
54
55
56
57
58
59
# Advanced setup, replacing the repository's CodeQL default setup. The
# reason it is a workflow rather than default setup is the local query pack
# in .github/codeql/dw-security, which teaches the path-injection query
# about dw/security.py's validators - default setup cannot load a pack.
#
# The language list and the weekly schedule match what default setup ran,
# so nothing that was being scanned stopped being scanned.
name: CodeQL
on:
push:
branches: [master]
pull_request:
schedule:
# Weekly, as default setup ran it
- cron: '23 4 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
security-events: write
# Both needed by the action to read workflow runs for the actions analysis
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: javascript-typescript
build-mode: none
# Only python gets a config file, because the pack it adds is a
# python pack and would not compile against another language's
# database
- language: python
build-mode: none
config-file: .github/codeql/codeql-config.yml
steps:
- uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config-file: ${{ matrix.config-file }}
- name: Analyze
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"