Skip to content

Commit c75c127

Browse files
committed
ci: Adding github security scanning
1 parent d741459 commit c75c127

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/codeql-analysis.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: "CodeQL"
3+
4+
on:
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
schedule:
10+
- cron: "0 0 * * 6"
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
21+
language: ["go"]
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 2
28+
29+
- run: git checkout HEAD^2
30+
if: ${{ github.event_name == 'pull_request' }}
31+
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v1
34+
with:
35+
languages: ${{ matrix.language }}
36+
37+
- name: Autobuild
38+
run: make build
39+
40+
- name: Perform CodeQL Analysis
41+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)