Skip to content

Commit dac025e

Browse files
committed
Add CodeQl workflow config
3.0-preview-update-workflow
1 parent d74d39c commit dac025e

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "main", "3.0-preview" ]
6+
pull_request:
7+
branches: [ "main", "3.0-preview" ]
8+
9+
jobs:
10+
run-codeql-linux:
11+
name: Run CodeQL on macOS
12+
runs-on: macos-latest
13+
permissions:
14+
security-events: write
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Initialize CodeQL
21+
uses: github/codeql-action/init@v2
22+
with:
23+
languages: swift
24+
25+
- name: Build
26+
run: swift build
27+
28+
- name: Perform CodeQL Analysis
29+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)