首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android的GitLab CI SAST :作业mobsf-android-sast失败

Android的GitLab CI SAST :作业mobsf-android-sast失败
EN

Stack Overflow用户
提问于 2022-06-17 14:44:39
回答 1查看 135关注 0票数 0

我的任务mobsf-android-sast出错了,我是不是错过了mobsf的一些配置?

日志:

代码语言:javascript
复制
$ /analyzer run
[INFO] [MobSF] [2022-06-17T14:02:46Z] ▶ GitLab MobSF analyzer v3.0.0
......
......
[INFO] [MobSF] [2022-06-17T14:02:49Z] ▶ Zipping: keystore.properties
[INFO] [MobSF] [2022-06-17T14:02:49Z] ▶ Zipping: sonar-project.properties
[FATA] [MobSF] [2022-06-17T14:02:49Z] ▶ failed to upload archive to mobsf: error requesting scan: Post "http://localhost:8000/api/v1/upload": dial tcp [::1]:8000: connect: connection refused
Uploading artifacts for failed job
Uploading artifacts...
WARNING: gl-sast-report.json: no matching files    
ERROR: No files to upload                          
Cleaning up project directory and file based variables
ERROR: Job failed: command terminated with exit code 1

.gitlab-ci.yml

代码语言:javascript
复制
include:
  - template: Security/SAST.gitlab-ci.yml

variables:
  SAST_EXPERIMENTAL_FEATURES: "true"

sast:
  stage: test
EN

回答 1

Stack Overflow用户

发布于 2022-08-17 07:40:02

代码语言:javascript
复制
variables:
  SAST_EXPERIMENTAL_FEATURES: "true"
  DS_DISABLE_DIND: "true"

sast:
      stage: test
      dependencies:
        - build
      artifacts:
        reports:
          sast: gl-sast-report.json
        paths:
          - gl-sast-report.json
      tags:
        - docker

试试这个

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72661137

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档