Commit 09ed9f34 authored by barry cho's avatar barry cho
Browse files

更新.gitlab-ci.yml文件

parent 00d61ffd
Pipeline #818 passed with stage
in 1 minute and 36 seconds
Showing with 22 additions and 0 deletions
+22 -0
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment