-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (49 loc) · 1.44 KB
/
codeql-analysis.yml
File metadata and controls
53 lines (49 loc) · 1.44 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
name: "CodeQL"
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 20 * * 2"
permissions:
actions: read
checks: write
contents: read
security-events: write
jobs:
analyze:
name: Analyze
strategy:
fail-fast: false
matrix:
language-platform:
- language: "go"
platform: ubuntu-24.04
- language: "rust"
platform: ubuntu-24.04
- language: "javascript"
platform: ubuntu-24.04
# - language: "swift"
# platform: macos-15
# - language: "cpp"
# platform: windows-2025
runs-on: ${{ matrix.language-platform.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version-file: go.mod
cache: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language-platform.language }}
- name: Install libraries
if: ${{ matrix.language-platform.language == 'ubuntu-24.04' }}
run: sudo apt-get update && sudo apt-get install -y libpam0g-dev libudev-dev
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4