Skip to content

Commit 4eedb4c

Browse files
IT SEC BOTIT SEC BOT
authored andcommitted
code scanning
1 parent adcd687 commit 4eedb4c

File tree

1 file changed

+38
-5
lines changed

1 file changed

+38
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,35 @@
33
#
44
# You may wish to alter this file to override the set of languages analyzed,
55
# or to provide custom queries or build logic.
6-
name: "CodeQL"
6+
name: "IT Security Code Scan"
77

88
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'
917
pull_request:
1018
# The branches below must be a subset of the branches above
1119
branches: [master]
20+
paths-ignore:
21+
- '**/*.md'
22+
- '**/*.txt'
23+
- '**/*.yml'
24+
- '**/*.yaml'
1225
workflow_dispatch:
1326

1427
jobs:
1528
analyze:
1629
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/*
1835

1936
strategy:
2037
fail-fast: false
@@ -28,10 +45,26 @@ jobs:
2845
steps:
2946
- name: Checkout repository
3047
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'
3159

60+
- name: Set Up Python
61+
if: matrix.language == 'python'
62+
uses: actions/setup-python@v4
63+
with:
64+
python-version: '3.x'
3265
# Initializes the CodeQL tools for scanning.
3366
- name: Initialize CodeQL
34-
uses: github/codeql-action/init@v1
67+
uses: github/codeql-action/init@v2
3568
with:
3669
languages: ${{ matrix.language }}
3770
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -42,7 +75,7 @@ jobs:
4275
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4376
# If this step fails, then you should remove it and run the build manually (see below)
4477
- name: Autobuild
45-
uses: github/codeql-action/autobuild@v1
78+
uses: github/codeql-action/autobuild@v2
4679

4780
# ℹ️ Command-line programs to run using the OS shell.
4881
# 📚 https://git.io/JvXDl
@@ -56,4 +89,4 @@ jobs:
5689
# make release
5790

5891
- name: Perform CodeQL Analysis
59-
uses: github/codeql-action/analyze@v1
92+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)