File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " CodeQL"
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ pull_request :
7
+ # The branches below must be a subset of the branches above
8
+ branches : [master]
9
+ schedule :
10
+ - cron : ' 0 15 * * 2'
11
+
12
+ jobs :
13
+ analyse :
14
+ name : Analyse
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - name : Checkout repository
19
+ uses : actions/checkout@v2
20
+ with :
21
+ # We must fetch at least the immediate parents so that if this is
22
+ # a pull request then we can checkout the head.
23
+ fetch-depth : 2
24
+
25
+ # If this run was triggered by a pull request event, then checkout
26
+ # the head of the pull request instead of the merge commit.
27
+ - run : git checkout HEAD^2
28
+ if : ${{ github.event_name == 'pull_request' }}
29
+
30
+ # Initializes the CodeQL tools for scanning.
31
+ - name : Initialize CodeQL
32
+ uses : github/codeql-action/init@v1
33
+ with :
34
+ languages : go
35
+
36
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
37
+ # If this step fails, then you should remove it and run the build manually (see below)
38
+ - name : Autobuild
39
+ uses : github/codeql-action/autobuild@v1
40
+
41
+ # ℹ️ Command-line programs to run using the OS shell.
42
+ # 📚 https://git.io/JvXDl
43
+
44
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
45
+ # and modify them (or add more) to build your code if your project
46
+ # uses a compiled language
47
+
48
+ # - run: |
49
+ # make bootstrap
50
+ # make release
51
+
52
+ - name : Perform CodeQL Analysis
53
+ uses : github/codeql-action/analyze@v1
You can’t perform that action at this time.
0 commit comments