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
git test
Hutool
Commits
e42b5d14
Commit
e42b5d14
authored
3 years ago
by
git test
Browse files
Options
Download
Email Patches
Plain Diff
更新.gitlab-ci.yml文件
parent
96bfef38
v5-master
No related merge requests found
Pipeline
#1199
passed with stage
in 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-21
.gitlab-ci.yml
with
3 additions
and
21 deletions
+3
-21
.gitlab-ci.yml
+
3
-
21
View file @
e42b5d14
stages
:
-
source
#定义管道中的阶段
source
:
stage
:
source
image
:
"
repo.gitsec.cn/docker/sca_scanner:latest"
#选择使用那个镜像
tags
:
-
k8s
job_name
:
script
:
-
java -jar /opt/seczone/scanner.jar --filePath /builds/test/hutool --parseFrom 4 --cliMode portal --projectName /builds/test/hutool --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
-
export
# - 'dir env:' # Use this for PowerShell
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