-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.66 KB
/
codeql.yml
File metadata and controls
60 lines (52 loc) · 1.66 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
60
name: CodeQL
on:
pull_request:
push:
branches: [main]
schedule:
- cron: '0 3 * * 1'
permissions:
# Required so CodeQL can upload SARIF results to the security tab.
security-events: write
contents: read
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
# Current CodeQL-supported repo surface is TypeScript/JavaScript.
# Rust exists in apps/desktop/src-tauri but is not a CodeQL language.
languages: javascript-typescript
- uses: github/codeql-action/analyze@v3
with:
category: '/language:javascript-typescript-repo'
detect-household-changes:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
outputs:
household: ${{ steps.paths.outputs.household }}
steps:
- uses: actions/checkout@v4
- name: Detect household-path changes
id: paths
uses: dorny/paths-filter@v3
with:
filters: |
household:
- 'modules/household-*/**'
- 'modules/home-state/**'
- 'packages/voice-core/**'
analyze-household:
if: github.event_name == 'pull_request' && needs.detect-household-changes.outputs.household == 'true'
needs: [detect-household-changes]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: javascript-typescript
- uses: github/codeql-action/analyze@v3
with:
category: '/language:javascript-typescript-household'