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
小 白蛋
Jpom
Commits
69cdb0af
Commit
69cdb0af
authored
3 years ago
by
小 白蛋
Browse files
Options
Download
Email Patches
Plain Diff
更新.gitlab-ci.yml文件
parent
d3831c0f
Pipeline
#6082
passed with stages
in 13 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+41
-0
.gitlab-ci.yml
with
41 additions
and
0 deletions
+41
-0
.gitlab-ci.yml
0 → 100644
+
41
-
0
View file @
69cdb0af
stages
:
-
fortify-sast-scancentral
-
fortify-get-reprot
variables
:
build_type
:
mvn
#mvn指代maven
fortify-sast-scancentral
:
stage
:
fortify-sast-scancentral
image
:
repo.gitsec.cn/docker/fortify-ci:v2.1
script
:
# 执行脚本创建项目以及填入属性
-
echo $(date +%s) > time.txt
-
python3 /home/script/create.py $CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE-$(cat time.txt) 1 FortifyToken MjMzM2IyNzgtZDRiOS00ZTA4LWJjZjAtOTM3YzhiNTJlMDNj http://fortify.gitsec.cn
# 上传待扫描的项目
-
'
scancentral
-url
http://fortify.gitsec.cn/scancentral-ctrl/
-ssctoken
5dd97723-c2a4-476e-9351-417e8a50beff
start
-bt
$build_type
-upload
-application
$CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE-$(cat
time.txt)
-version
1
-uptoken
5dd97723-c2a4-476e-9351-417e8a50beff
|
tee
-a
report.log'
allow_failure
:
true
#上传到私有仓库
artifacts
:
paths
:
-
time.txt
-
report.log
expire_in
:
1 day
fortify-get-reprot
:
stage
:
fortify-get-reprot
image
:
repo.gitsec.cn/docker/fortify-ci:v2.1
script
:
# 下载报告扫描结果
-
'
tail
-n
1
report.log
'
-
'
cp
report.log
/home/script'
-
'
python3
/home/script/get.py
'
-
'
echo
$CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE-$(cat
time.txt)'
-
'
FortifyVulnerabilityExporter
SSCToGitLabSAST
--ssc.baseUrl=http://fortify.gitsec.cn/ssc
--ssc.authToken=2333b278-d4b9-4e08-bcf0-937c8b52e03c
--ssc.version.name=$CI_PROJECT_NAME-$CI_PROJECT_NAMESPACE-$(cat
time.txt):1
--ssc.userName="admin"'
-
'
find
/
-name
"gl-fortify-sast.json"'
allow_failure
:
true
artifacts
:
reports
:
sast
:
./gl-fortify-sast.json
\ 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