Skip to content

Commit 48f1628

Browse files
committed
Add workflow for CodeQL analysis action
1 parent ad47c26 commit 48f1628

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [master, develop]
6+
pull_request:
7+
branches: [master]
8+
schedule:
9+
- cron: '0 17 * * 1,3,5'
10+
11+
jobs:
12+
analyse:
13+
name: Analyse
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 2
21+
22+
- run: git checkout HEAD^2
23+
if: ${{ github.event_name == 'pull_request' }}
24+
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v1
27+
with:
28+
languages: go
29+
30+
- name: Perform CodeQL Analysis
31+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)