-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (53 loc) · 1.21 KB
/
codeql.yml
File metadata and controls
60 lines (53 loc) · 1.21 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
54
55
56
57
58
59
60
on:
schedule:
- cron: '5 11 * * 3'
push:
paths-ignore:
- 'charts/**'
- 'example/**'
- 'docs/**'
- '/*.md'
branches:
- 'main'
- 'release-*'
pull_request:
branches:
- 'main'
- 'release-*'
paths-ignore:
- 'charts/**'
- 'example/**'
- 'docs/**'
- '/*.md'
workflow_call:
name: CodeQL analysis
jobs:
codql-build:
permissions:
security-events: write
strategy:
matrix:
architecture: [amd64]
os: [linux]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
id: go
- name: Download Go modules
run: go mod download
env:
GOPROXY: https://proxy.golang.org
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Build
run: GOOS=${{ matrix.os }} GOARCH=${{matrix.architecture}} go build -o bin/node-undertaker ./cmd/node-undertaker
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2