-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 1.82 KB
/
Copy pathcodeql.yaml
File metadata and controls
71 lines (60 loc) · 1.82 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
61
62
63
64
65
66
67
68
69
70
71
name: CodeQL
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
schedule:
- cron: "39 6 * * 3"
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ matrix.runner }}
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
runner: ubuntu-24.04
- language: javascript-typescript
build-mode: none
runner: ubuntu-24.04
# NOTE: CodeQL for Swift is extremely slow
# - language: swift
# build-mode: manual
# runner: macos-15
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Setup build tools (macos)
if: matrix.runner == 'macos-15'
run: |
brew install just
sudo xcode-select --switch /Applications/Xcode_16.3.app
- name: Setup build tools (ubuntu)
if: matrix.runner == 'ubuntu-24.04'
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install just
- name: Initialize CodeQL
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Build apps
if: matrix.build-mode == 'manual' && matrix.language == 'swift'
env:
GABBER_CI: "true"
run: |
just build Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
with:
category: "/language:${{matrix.language}}"