This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GiHub CodeQL scanning to this repository
- Loading branch information
1 parent
f9cd200
commit baec6d7
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
name: "GitHub CodeQL" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
schedule: | ||
- cron: '20 18 * * 4' | ||
|
||
jobs: | ||
codeql: | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: "actions/checkout@v2" | ||
with: | ||
lfs: true | ||
fetch-depth: 0 | ||
|
||
- uses: "actions/setup-go@v2.1.3" | ||
with: | ||
go-version: "1.15.8" | ||
|
||
- name: "Setup/restore Go cache" | ||
uses: "actions/cache@v2.1.4" | ||
with: | ||
# In order: | ||
# * Module download cache | ||
# * Build cache (Linux) | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: "Initialize CodeQL" | ||
uses: "github/codeql-action/init@v1" | ||
with: | ||
languages: "go" | ||
|
||
- name: "Build the output binaries" | ||
run: | | ||
make build-all | ||
- name: "Perform CodeQL Analysis" | ||
uses: "github/codeql-action/analyze@v1" |