Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
Hikyuu
Commits
09ed9f34
Commit
09ed9f34
authored
3 years ago
by
barry cho
Browse files
Options
Download
Email Patches
Plain Diff
更新.gitlab-ci.yml文件
parent
00d61ffd
Pipeline
#818
passed with stage
in 1 minute and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-0
.gitlab-ci.yml
with
22 additions
and
0 deletions
+22
-0
.gitlab-ci.yml
0 → 100644
+
22
-
0
View file @
09ed9f34
stages
:
-
source
#定义管道中的阶段
source
:
stage
:
source
image
:
"
repo.gitsec.cn/docker/sca_scanner:latest"
#选择使用那个镜像
tags
:
-
k8s
script
:
-
java -jar /opt/seczone/scanner.jar --filePath /builds/barrycho/hikyuu --parseFrom 4 --cliMode portal --projectName hikyuu --phase Phase_1 --onCache
true
--mergeMode FULL --retrunCheckReport
true
--token c291cmNlLWFwaUBzZWN6b25lLmNuOmNmYTcxYTUyNjFjZTQ3NmM5MGNhNDRjNmIyNGNiNGM3 --portalIp https://sca.gitsec.cn/
#需要修改的值,token如果失效需要找管理员申请,portalIp为工具地址(该字段不用修改),filePath检测的文件目录,在k8s中为/builds/gitlab用户名/项目名称(例如“/builds/admin/MCMS”)projectName,项目名称修改成你想要的防止重复导致失败
-
ls;pwd
artifacts
:
reports
:
dependency_scanning
:
vulReport.json
license_scanning
:
licenseReport.json
paths
:
-
licenseReport.json
-
vulReport.json
#读取检测结果不用修改
expire_in
:
3 day
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help