Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Add GiHub CodeQL scanning to this repository
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinpinto committed Mar 18, 2021
1 parent f9cd200 commit baec6d7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/github-codeql.yml
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"

0 comments on commit baec6d7

Please sign in to comment.