Skip to content

Commit ca7d84a

Browse files
committed
chore(ci): add CodeQL
1 parent e7da50e commit ca7d84a

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CodeQL
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/*.yml'
7+
- '**.go'
8+
- 'go.mod'
9+
- '**.py'
10+
push:
11+
branches:
12+
- main
13+
14+
permissions: {}
15+
16+
jobs:
17+
analysis:
18+
name: Analysis
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language:
24+
- actions
25+
- go
26+
- python
27+
permissions:
28+
contents: read
29+
security-events: write
30+
steps:
31+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32+
with:
33+
persist-credentials: false
34+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
35+
with:
36+
go-version-file: go.mod
37+
if: matrix.language == 'go'
38+
- uses: github/codeql-action/init@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
39+
with:
40+
languages: ${{ matrix.language }}
41+
build-mode: ${{ matrix.language == 'go' && 'manual' || 'none' }}
42+
- run: make build install-docs-tools md-docs
43+
if: matrix.language == 'go'
44+
- uses: github/codeql-action/analyze@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
45+
with:
46+
category: /language:${{ matrix.language }}

0 commit comments

Comments
 (0)