-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (61 loc) · 1.85 KB
/
codeql.yml
File metadata and controls
71 lines (61 loc) · 1.85 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
name: CodeQL
on:
push:
branches:
- main
paths:
- 'Sources/**'
- 'Tests/**'
- 'Tools/VoidDisplayRelay/**'
- 'Package.swift'
- 'Package.resolved'
- '**/Package.resolved'
- '.github/workflows/codeql.yml'
schedule:
- cron: '31 17 * * 2'
workflow_dispatch:
permissions:
contents: read
security-events: write
concurrency:
group: codeql-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: analyze (${{ matrix.language }})
runs-on: ${{ matrix.runs_on }}
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
include:
- language: swift
runs_on: macos-26
build_command: swift build
- language: go
runs_on: macos-26
build_command: cd Tools/VoidDisplayRelay && go test ./...
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Go
if: ${{ matrix.language == 'go' }}
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version-file: Tools/VoidDisplayRelay/go.mod
cache-dependency-path: Tools/VoidDisplayRelay/go.sum
- name: Select Xcode
if: ${{ matrix.language == 'swift' }}
uses: ./.github/actions/xcode-select
- name: Initialize CodeQL
uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4
with:
languages: ${{ matrix.language }}
build-mode: manual
- name: Manual build
shell: bash
run: |
set -euo pipefail
${{ matrix.build_command }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4