Skip to content

Commit 35e2f73

Browse files
Copilotkiyarose
andcommitted
chore: add swift codeql workflow and fix dependabot
Agent-Logs-Url: https://github.com/SillyLittleTech/Flean/sessions/0c143699-654f-4f72-a71f-47df14596945 Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com>
1 parent cb63efc commit 35e2f73

3 files changed

Lines changed: 84 additions & 2 deletions

File tree

.github/codeql/codeql-config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: "Flean Swift CodeQL"
2+
3+
paths:
4+
- ios
5+
- mos

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
version: 2
77
updates:
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"

.github/workflows/codeql.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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'

0 commit comments

Comments
 (0)