Skip to content

Commit 092ea7e

Browse files
authored
Need a custom CodeQL workflow to get it to use Swift 6.2
1 parent 6805cbb commit 092ea7e

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CodeQL
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
branches: [ "main" ]
7+
schedule:
8+
- cron: '0 0 * * 1'
9+
10+
jobs:
11+
analyze:
12+
name: Analyze (${{ matrix.language }})
13+
permissions:
14+
security-events: write
15+
actions: read
16+
contents: read
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
include:
21+
- language: actions
22+
build-mode: none
23+
- language: swift
24+
build-mode: autobuild
25+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
26+
steps:
27+
- name: Select an Xcode which provides Swift 6.2.4
28+
if: ${{ matrix.language == 'swift' }}
29+
uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0
30+
with:
31+
xcode-version: '26.3'
32+
- name: Checkout repository
33+
uses: actions/checkout@v6
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v4
36+
with:
37+
languages: ${{ matrix.language }}
38+
queries: security-extended
39+
build-mode: ${{ matrix.build-mode }}
40+
- name: Perform CodeQL Analysis
41+
uses: github/codeql-action/analyze@v4
42+
with:
43+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)