@@ -0,0 +1,44 @@
1+name: "Code scanning - action"
2+
3+on:
4+ push:
5+ schedule:
6+ - cron: '0 0 * * 0'
7+
8+jobs:
9+ CodeQL-Build:
10+
11+ strategy:
12+ fail-fast: false
13+
14+ # CodeQL runs on ubuntu-latest and windows-latest
15+ runs-on: ubuntu-latest
16+
17+ steps:
18+ - name: Checkout repository
19+ uses: actions/checkout@v2
20+
21+ # Initializes the CodeQL tools for scanning.
22+ - name: Initialize CodeQL
23+ uses: github/codeql-action/init@v1
24+ with:
25+ languages: go
26+
27+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
28+ # If this step fails, then you should remove it and run the build manually (see below)
29+ - name: Autobuild
30+ uses: github/codeql-action/autobuild@v1
31+
32+ # ℹ️ Command-line programs to run using the OS shell.
33+ # 📚 https://git.io/JvXDl
34+
35+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
36+ # and modify them (or add more) to build your code if your project
37+ # uses a compiled language
38+
39+ #- run: |
40+ # make bootstrap
41+ # make release
42+
43+ - name: Perform CodeQL Analysis
44+ uses: github/codeql-action/analyze@v1