-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.37 KB
/
codeql-analysis.yml
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
name: "CodeQL"
on:
workflow_dispatch:
push:
schedule:
- cron: '25 0 * * 0'
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: macos-15
env:
DEVELOPER_DIR: "/Applications/Xcode_16.1.app/Contents/Developer"
timeout-minutes: 120
permissions:
security-events: write
steps:
- name: Set up build options
run: |
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Configure SPM cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: ~/Library/Caches/org.swift.swiftpm
key: spm-${{ hashFiles('Package.swift') }}
restore-keys: |
spm-
- name: Initialize CodeQL
uses: github/codeql-action/init@8a93837afdf1873301a68d777844b43e98cd4313 # v3
with:
languages: swift
- name: Autobuild
uses: github/codeql-action/autobuild@8a93837afdf1873301a68d777844b43e98cd4313 # v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8a93837afdf1873301a68d777844b43e98cd4313 # v3
with:
category: "/language:swift"