-
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: go.mod
if: matrix.language == 'go'
- uses: github/codeql-action/init@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v4.31.10
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.language == 'go' && 'manual' || 'none' }}
- run: make build
if: matrix.language == 'go'
- uses: github/codeql-action/analyze@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v4.31.10
with:
category: /language:${{ matrix.language }}