File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Flean Swift CodeQL"
2+
3+ paths :
4+ - ios
5+ - mos
Original file line number Diff line number Diff line change 55
66version : 2
77updates :
8- - package-ecosystem : " " # See documentation for possible values
9- directory : " /" # Location of package manifests
8+ - package-ecosystem : " github-actions "
9+ directory : " /"
1010 schedule :
1111 interval : " weekly"
Original file line number Diff line number Diff line change 1+ name : CodeQL (Swift)
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' **.swift'
9+ - ' ios/**'
10+ - ' mos/**'
11+ - ' .github/workflows/codeql.yml'
12+ - ' .github/codeql/**'
13+ pull_request :
14+ branches :
15+ - main
16+ paths :
17+ - ' **.swift'
18+ - ' ios/**'
19+ - ' mos/**'
20+ - ' .github/workflows/codeql.yml'
21+ - ' .github/codeql/**'
22+ schedule :
23+ - cron : ' 0 8 * * 1'
24+ workflow_dispatch :
25+
26+ permissions :
27+ contents : read
28+ security-events : write
29+
30+ jobs :
31+ analyze :
32+ name : Analyze
33+ runs-on : macos-latest
34+
35+ steps :
36+ - name : Checkout repository
37+ uses : actions/checkout@v4
38+ with :
39+ fetch-depth : 0
40+
41+ - name : Initialize CodeQL
42+ uses : github/codeql-action/init@v3
43+ with :
44+ languages : swift
45+ config-file : ./.github/codeql/codeql-config.yml
46+
47+ # The projects do not contain shared schemes, so build with explicit targets.
48+ - name : Build iOS app for analysis
49+ run : |
50+ cd ios
51+ xcodebuild build \
52+ -project Flean.xcodeproj \
53+ -target Flean \
54+ -configuration Debug \
55+ -sdk iphonesimulator \
56+ -skipPackagePluginValidation \
57+ CODE_SIGNING_ALLOWED=NO \
58+ CODE_SIGNING_REQUIRED=NO \
59+ CODE_SIGN_IDENTITY=""
60+
61+ - name : Build macOS app for analysis
62+ run : |
63+ cd mos
64+ xcodebuild build \
65+ -project Flean.xcodeproj \
66+ -target Flean \
67+ -configuration Debug \
68+ -sdk macosx \
69+ -skipPackagePluginValidation \
70+ CODE_SIGNING_ALLOWED=NO \
71+ CODE_SIGNING_REQUIRED=NO \
72+ CODE_SIGN_IDENTITY=""
73+
74+ - name : Perform CodeQL Analysis
75+ uses : github/codeql-action/analyze@v3
76+ with :
77+ category : ' /language:swift'
You can’t perform that action at this time.
0 commit comments