forked from robbert-vdh/nih-plug
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.41 KB
/
Copy pathcodeql.yml
File metadata and controls
53 lines (47 loc) · 1.41 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:
- master
pull_request:
schedule:
- cron: '23 3 * * 1'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: [self-hosted, Linux, X64, codeql-mini]
timeout-minutes: 30
strategy:
fail-fast: false
# One CodeQL language at a time: this host has 4 cores and a single
# codeql-mini runner, so a parallel matrix starves ordinary CI jobs.
max-parallel: 1
matrix:
language:
- actions
- rust
permissions:
contents: read
packages: read
security-events: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
# Rust and GitHub Actions support build-mode none. This covers the full
# tracked source and workflow tree without duplicating the expensive
# build/test jobs.
- name: Initialize CodeQL
uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4
with:
languages: ${{ matrix.language }}
build-mode: none
queries: security-and-quality
- name: Analyze
uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4
with:
category: /language:${{ matrix.language }}