-
Notifications
You must be signed in to change notification settings - Fork 18
46 lines (43 loc) · 1.19 KB
/
codeql.yml
File metadata and controls
46 lines (43 loc) · 1.19 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
name: CodeQL
on:
pull_request:
paths:
- '.github/workflows/*.yml'
- '**.go'
- 'go.mod'
- '**.py'
push:
branches:
- main
permissions: {}
jobs:
analysis:
name: Analysis
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language:
- actions
- go
- python
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
if: matrix.language == 'go'
- uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.language == 'go' && 'manual' || 'none' }}
- run: make build install-docs-tools md-docs
if: matrix.language == 'go'
- uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
category: /language:${{ matrix.language }}