Enable CodeQL scanning

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2021-05-28 13:38:00 -04:00
parent a1bd63b965
commit 2706df04f9

33
.github/workflows/codeql.yaml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: codeql
on:
push:
branches:
- master
env:
GO_VERSION: "1.16.4"
jobs:
analyze:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go
- name: Build binary
run: make build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1