-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.35 KB
/
codeql.yml
File metadata and controls
57 lines (49 loc) · 1.35 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
name: CodeQL
on:
push:
branches:
- main
paths:
- "Sources/**"
- "macOSdbApp/**"
- "Package.swift"
- "Package.resolved"
concurrency:
group: "codeql-${{ github.ref }}"
cancel-in-progress: false
defaults:
run:
shell: bash -xeuo pipefail {0}
permissions: {}
jobs:
analyze:
name: Analyze (Swift)
runs-on: macos-26
permissions:
contents: read
security-events: write # required to upload SARIF results
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
with:
languages: swift
build-mode: manual
- name: Build
run: |
xcodebuild \
-project macOSdb.xcodeproj \
-scheme macOSdb \
-destination 'generic/platform=macOS' \
-configuration Debug \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
EXCLUDED_ARCHS=x86_64 \
build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
with:
category: "/language:swift"