-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.62 KB
/
Copy pathcodeql.yml
File metadata and controls
54 lines (52 loc) · 1.62 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
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '23 5 * * 1'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
# security-extended is heavy; bump the cap to absorb the full sweep
# plus the autobuild step on a fresh runner cache.
timeout-minutes: 60
steps:
- uses: actions/checkout@v6
- uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
# Inline config that skips dependency / build / coverage trees so
# the analyzer only looks at code we wrote. Without these excludes
# the database balloons with node_modules and the analyze step OOMs
# or times out on a 7 GB ubuntu-latest runner.
config: |
paths:
- apps
- packages
- scripts
- e2e
paths-ignore:
- '**/node_modules'
- '**/dist'
- '**/build'
- '**/coverage'
- '**/.turbo'
- '**/playwright-report'
- '**/test-results'
- 'docs/qa/results'
- 'apps/desktop/release'
- '**/*.min.js'
- '**/*.d.ts'
# Default suite is enough to clear the public-repo bar; switch back
# to `security-extended` once we can afford a larger runner.
queries: +security-and-quality
- uses: github/codeql-action/analyze@v4
with:
category: '/language:javascript-typescript'