forked from OpenCoven/coven-cave
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (83 loc) · 2.83 KB
/
Copy pathcodeql.yml
File metadata and controls
92 lines (83 loc) · 2.83 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: CodeQL Advanced
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "23 4 * * 2"
workflow_dispatch:
concurrency:
group: codeql-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
actions: read
contents: read
packages: read
security-events: write
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ matrix.runner }}
timeout-minutes: ${{ matrix.timeout }}
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
runner: ubuntu-latest
timeout: 15
- language: javascript-typescript
build-mode: none
runner: ubuntu-latest
timeout: 20
- language: python
build-mode: none
runner: ubuntu-latest
timeout: 15
- language: rust
build-mode: none
runner: ubuntu-latest
timeout: 20
- language: swift
build-mode: manual
runner: macos-15
timeout: 40
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
# Install build tooling before CodeQL initializes its Swift tracer. On
# Apple Silicon, Homebrew rejects installs invoked through Rosetta.
- name: Install XcodeGen
if: matrix.language == 'swift'
run: brew install xcodegen
- name: Initialize CodeQL
uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Generate and build the iOS project
if: matrix.language == 'swift'
env:
DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer
run: |
set -euo pipefail
xcodegen generate --spec apps/ios/CovenCave/project.yml
xcodebuild \
-project apps/ios/CovenCave/CovenCave.xcodeproj \
-scheme CovenCave \
-sdk iphonesimulator \
-destination 'generic/platform=iOS Simulator' \
-derivedDataPath "$RUNNER_TEMP/CovenCaveDerivedData" \
CODE_SIGNING_ALLOWED=NO \
ONLY_ACTIVE_ARCH=YES \
ARCHS=arm64 \
build
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1
with:
# Default setup rejects advanced SARIF uploads. Keep the migration
# workflow green in analysis-only mode until an administrator
# disables default setup and sets this repository variable to always.
upload: ${{ vars.CODEQL_ADVANCED_UPLOAD || 'never' }}