-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.14 KB
/
Copy pathcodeql.yml
File metadata and controls
42 lines (38 loc) · 1.14 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
name: codeql
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "23 4 * * 1" # weekly, Monday 04:23 UTC
permissions:
security-events: write
contents: read
actions: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
# Advanced CodeQL setup (replaces default setup). The matrix scans the real
# source: Rust (the workspace) and TypeScript/JavaScript (afm-wasm + the
# afm-book theme). The redundant js/ts aliases and `actions` language that
# default setup auto-detected are dropped. Vendored comrak (upstream/comrak)
# is excluded via codeql-config.yml.
jobs:
codeql:
name: codeql (${{ matrix.language }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [rust, javascript-typescript]
steps:
- uses: actions/checkout@v6
- uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: none
config-file: ./.github/codeql/codeql-config.yml
- uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"