3
3
#
4
4
# You may wish to alter this file to override the set of languages analyzed,
5
5
# or to provide custom queries or build logic.
6
- name : " CodeQL "
6
+ name : " IT Security Code Scan "
7
7
8
8
on :
9
+ push :
10
+ # The branches below must be a subset of the branches above
11
+ branches : [master]
12
+ paths-ignore :
13
+ - ' **/*.md'
14
+ - ' **/*.txt'
15
+ - ' **/*.yml'
16
+ - ' **/*.yaml'
9
17
pull_request :
10
18
# The branches below must be a subset of the branches above
11
19
branches : [master]
20
+ paths-ignore :
21
+ - ' **/*.md'
22
+ - ' **/*.txt'
23
+ - ' **/*.yml'
24
+ - ' **/*.yaml'
12
25
workflow_dispatch :
13
26
14
27
jobs :
15
28
analyze :
16
29
name : Analyze
17
- runs-on : [self-hosted, linux, x64, aws-runner-1]
30
+ runs-on : [runnerset=code-scanning-runners]
31
+ env :
32
+ CODEQL_RAM : 8192
33
+ CODEQL_THREADS : 2
34
+ GOPRIVATE : github.com/tokopedia/*
18
35
19
36
strategy :
20
37
fail-fast : false
@@ -28,10 +45,26 @@ jobs:
28
45
steps :
29
46
- name : Checkout repository
30
47
uses : actions/checkout@v2
48
+ - run : git config --global --add url."git@github.com:".insteadOf "https://github.com/"
49
+ - name : Set Up Go
50
+ if : matrix.language == 'go'
51
+ uses : actions/setup-go@v2
52
+ with :
53
+ go-version : 1.14
54
+ - name : Set Up Node
55
+ if : matrix.language == 'javascript'
56
+ uses : actions/setup-node@v3
57
+ with :
58
+ node-version : ' 14'
31
59
60
+ - name : Set Up Python
61
+ if : matrix.language == 'python'
62
+ uses : actions/setup-python@v4
63
+ with :
64
+ python-version : ' 3.x'
32
65
# Initializes the CodeQL tools for scanning.
33
66
- name : Initialize CodeQL
34
- uses : github/codeql-action/init@v1
67
+ uses : github/codeql-action/init@v2
35
68
with :
36
69
languages : ${{ matrix.language }}
37
70
# If you wish to specify custom queries, you can do so here or in a config file.
42
75
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
43
76
# If this step fails, then you should remove it and run the build manually (see below)
44
77
- name : Autobuild
45
- uses : github/codeql-action/autobuild@v1
78
+ uses : github/codeql-action/autobuild@v2
46
79
47
80
# ℹ️ Command-line programs to run using the OS shell.
48
81
# 📚 https://git.io/JvXDl
56
89
# make release
57
90
58
91
- name : Perform CodeQL Analysis
59
- uses : github/codeql-action/analyze@v1
92
+ uses : github/codeql-action/analyze@v2
0 commit comments