-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.72 KB
/
codeql.yml
File metadata and controls
57 lines (51 loc) · 1.72 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
name: CodeQL
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
# Weekly baseline scan, Sunday 03:00 UTC, before the Monday
# dependency-watch + Dependabot waves.
- cron: "0 3 * * 0"
workflow_dispatch:
permissions:
contents: read
security-events: write
actions: read
jobs:
analyze:
name: Analyze ${{ matrix.language }}
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: rust
# Rust support in CodeQL only accepts build-mode: none at this time;
# the extractor runs from source without a project-specific build step.
build-mode: none
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
- name: Setup Node.js
if: matrix.language == 'javascript-typescript'
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
with:
node-version: "20"
# Deliberately no `cache: "pnpm"` here: build-mode: none does not run
# `pnpm install`, so a cache-save step at teardown fails with "Path(s)
# specified ... do(es) not exist".
- name: Initialize CodeQL
uses: github/codeql-action/init@865f5f5c36632f18690a3d569fa0a764f2da0c3e
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-extended
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@865f5f5c36632f18690a3d569fa0a764f2da0c3e
with:
category: /language:${{ matrix.language }}