Skip to content

Commit c1100ae

Browse files
authored
github/workflow: add CodeQL workflow (#111)
1 parent 13a4271 commit c1100ae

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
schedule:
11+
- cron: '0 20 * * *'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-20.04
17+
18+
strategy:
19+
fail-fast: false
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@main
24+
25+
- name: Install Go
26+
uses: actions/setup-go@main
27+
with:
28+
go-version: 1.16.x
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v1
32+
with:
33+
languages: go
34+
35+
- name: Perform CodeQL Analysis
36+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)