From ee609e4571669563cedcd6bc404da692bba45014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Thu, 21 Mar 2024 11:20:41 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=9B=B4=E6=96=B0=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d07bae0..39265fe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,20 +16,6 @@ compile : - echo "=============== 开始编译任务 ===============" - mvn clean compile -DskipTests -security-test-job: - stage: test - tags: - - linux-maven - script: - - echo "do opensca scan..." - - $HOME/.config/opensca-cli/opensca-cli -path $CI_PROJECT_DIR -token glpat-8LV_ERinz1jsKFf9prg_ -out $CI_PROJECT_DIR/results/result.html,$CI_PROJECT_DIR/results/result.dsdx.json - artifacts: - paths: - - results/ - untracked: false - when: on_success - expire_in: 30 days - # 集成测试 integration-test: stage : test @@ -54,6 +40,20 @@ integration-test: dependencies: - compile +security-test-job: + stage: test + tags: + - linux-maven + script: + - echo "do opensca scan..." + - $OPENSCA_CLI -path $CI_PROJECT_DIR -token $OPENSCA_TOKEN -out $CI_PROJECT_DIR/results/result.html,$CI_PROJECT_DIR/results/result.dsdx.json + artifacts: + paths: + - results/ + untracked: false + when: on_success + expire_in: 30 days + # 代码质量检查 sonarqube-check : stage : check