Skip to content

Commit 510b0dc

Browse files
author
Timofey Mischenko
committed
codeql workflow with manual build
1 parent 3d6392c commit 510b0dc

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
schedule:
9+
- cron: '0 10 * * 1'
10+
11+
permissions:
12+
actions: read
13+
contents: read
14+
security-events: write
15+
16+
jobs:
17+
analyze:
18+
name: Analyze (swift)
19+
runs-on: macos-15
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
26+
- name: Select Xcode
27+
uses: maxim-lobanov/setup-xcode@v1
28+
with:
29+
xcode-version: "16.1"
30+
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v4
33+
with:
34+
languages: swift
35+
build-mode: manual
36+
37+
- name: Build
38+
run: |
39+
xcodebuild \
40+
-project nailed.xcodeproj \
41+
-scheme nailed \
42+
-configuration Debug \
43+
CODE_SIGN_IDENTITY="-" \
44+
CODE_SIGNING_REQUIRED=NO \
45+
CODE_SIGNING_ALLOWED=NO \
46+
build
47+
48+
- name: Perform CodeQL Analysis
49+
uses: github/codeql-action/analyze@v4
50+
with:
51+
category: /language:swift

0 commit comments

Comments
 (0)