-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.41 KB
/
codeql.yml
File metadata and controls
49 lines (46 loc) · 1.41 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
name: CodeQL
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
schedule:
- cron: '0 3 * * 1'
jobs:
analyze-kotlin:
name: Analyze (Java/Kotlin)
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- uses: github/codeql-action/init@v3
with:
languages: 'java-kotlin'
# Custom build steps for Kotlin Multiplatform (avoid Android/iOS toolchains)
- name: Build Kotlin common metadata
run: ./gradlew :pollingengine:compileKotlinMetadata --no-daemon --stacktrace
- uses: github/codeql-action/analyze@v3
analyze-swift:
name: Analyze (Swift)
runs-on: macos-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v5
- uses: github/codeql-action/init@v3
with:
languages: 'swift'
# Custom build steps for Swift (explicit xcodebuild)
- name: Build iOS app for simulator (no code signing)
run: xcodebuild -project iosApp/iosApp.xcodeproj -scheme iosApp -sdk iphonesimulator -configuration Release CODE_SIGNING_ALLOWED=NO build
- uses: github/codeql-action/analyze@v3