forked from jakob/TableTool
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.32 KB
/
Copy pathcodeql.yml
File metadata and controls
50 lines (46 loc) · 1.32 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
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '41 3 * * 2'
permissions:
contents: read
packages: read
security-events: write
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Swift security analysis
runs-on: macos-15
timeout-minutes: 45
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Select Xcode and generate the project
run: |
sudo xcode-select -s /Applications/Xcode_16.4.app
brew install xcodegen
xcodegen generate
- name: Initialize CodeQL
uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v4
with:
languages: swift
queries: security-extended
- name: Build the analyzed application
run: |
xcodebuild build \
-project TableToolX.xcodeproj \
-scheme TableToolX \
-configuration Release \
-destination 'generic/platform=macOS' \
ARCHS=arm64 \
ONLY_ACTIVE_ARCH=YES \
CODE_SIGNING_ALLOWED=NO
- name: Analyze
uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v4
with:
category: /language:swift