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
My Blog
Commits
60281d3d
Commit
60281d3d
authored
3 years ago
by
git test
Browse files
Options
Download
Email Patches
Plain Diff
更新.gitlab-ci.yml文件
parent
52365353
Pipeline
#800
passed with stage
in 1 minute and 7 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 @
60281d3d
stages
:
-
source
#定义管道中的阶段
source
:
stage
:
source
image
:
"
repo.gitsec.cn/docker/sca_scanner:v3"
#选择使用那个镜像
tags
:
-
k8s
script
:
-
java -jar /opt/seczone/scanner.jar --filePath /builds/test/My-Blog --parseFrom 4 --cliMode portal --projectName test --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
\ No newline at end of file
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