-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (69 loc) · 1.79 KB
/
Copy pathcodeql.yml
File metadata and controls
77 lines (69 loc) · 1.79 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
72
73
74
75
76
77
name: CodeQL (Swift)
on:
push:
branches:
- main
paths:
- '**.swift'
- 'ios/**'
- 'mos/**'
- '.github/workflows/codeql.yml'
- '.github/codeql/**'
pull_request:
branches:
- main
paths:
- '**.swift'
- 'ios/**'
- 'mos/**'
- '.github/workflows/codeql.yml'
- '.github/codeql/**'
schedule:
- cron: '0 8 * * 1'
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
analyze:
name: Analyze
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: swift
config-file: ./.github/codeql/codeql-config.yml
# The projects do not contain shared schemes, so build with explicit targets.
- name: Build iOS app for analysis
run: |
cd ios
xcodebuild build \
-project Flean.xcodeproj \
-target Flean \
-configuration Debug \
-sdk iphonesimulator \
-skipPackagePluginValidation \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY=""
- name: Build macOS app for analysis
run: |
cd mos
xcodebuild build \
-project Flean.xcodeproj \
-target Flean \
-configuration Debug \
-sdk macosx \
-skipPackagePluginValidation \
CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY=""
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:swift'