Skip to content

Commit 2706df0

Browse files
committed
Enable CodeQL scanning
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent a1bd63b commit 2706df0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/codeql.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: codeql
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
GO_VERSION: "1.16.4"
10+
11+
jobs:
12+
analyze:
13+
runs-on: ubuntu-latest
14+
if: "!contains(github.event.head_commit.message, '[ci skip]')"
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: ${{ env.GO_VERSION }}
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v1
26+
with:
27+
languages: go
28+
29+
- name: Build binary
30+
run: make build
31+
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)