Skip to content

Commit 599d8e4

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/main'
2 parents 2501ae8 + 74cd6e2 commit 599d8e4

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
schedule:
11+
- cron: "00 14 * * 5"
12+
13+
jobs:
14+
analyze:
15+
name: Analyze (${{ matrix.language }})
16+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
17+
18+
permissions:
19+
security-events: write
20+
packages: read
21+
actions: read
22+
contents: read
23+
24+
strategy:
25+
fail-fast: false
26+
27+
matrix:
28+
include:
29+
- language: actions
30+
build-mode: none
31+
- language: swift
32+
build-mode: manual
33+
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v4
39+
with:
40+
languages: ${{ matrix.language }}
41+
build-mode: ${{ matrix.build-mode }}
42+
- name: Build Swift package
43+
if: matrix.language == 'swift'
44+
shell: bash
45+
run: |
46+
swift --version
47+
swift build --arch arm64
48+
- name: Perform CodeQL Analysis
49+
uses: github/codeql-action/analyze@v4
50+
with:
51+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)