-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (41 loc) · 1.13 KB
/
codeql.yml
File metadata and controls
44 lines (41 loc) · 1.13 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
name: CodeQL
on:
pull_request:
paths:
- '.github/workflows/*.yml'
- '**.go'
- 'go.mod'
push:
branches:
- main
permissions: {}
jobs:
analysis:
name: Analysis
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language:
- actions
- go
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version-file: go.mod
if: matrix.language == 'go'
- uses: github/codeql-action/init@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.language == 'go' && 'manual' || 'none' }}
- run: make build
if: matrix.language == 'go'
- uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
with:
category: /language:${{ matrix.language }}