首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gitlab SAST失败,没有明显的原因

Gitlab SAST失败,没有明显的原因
EN

Stack Overflow用户
提问于 2021-11-01 16:39:59
回答 1查看 850关注 0票数 0

我正在测试Gitlab自动提供的SAST功能。

我的项目(java、spring、maven)在本地用mvn干净包编译得很好。

我正在与一个托管的Gitlab和共享跑步者一起工作。

CI还没有实施。

我选择了生成的..gitlab ci.yml文件

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

然后,这项工作失败了,并发出了如下消息:

代码语言:javascript
复制
$ /analyzer run
[INFO] [Find Security Bugs] [2021-11-01T16:27:54Z] ▶ GitLab Find Security Bugs analyzer v2.28.7
[INFO] [Find Security Bugs] [2021-11-01T16:27:54Z] ▶ Detecting project
[INFO] [Find Security Bugs] [2021-11-01T16:27:54Z] ▶ Found project in /builds/myrepo/myproject
[INFO] [Find Security Bugs] [2021-11-01T16:27:54Z] ▶ Running analyzer
[INFO] [Find Security Bugs] [2021-11-01T16:27:54Z] ▶ Found Mvnw project in /builds/myrepo/myproject directory
[INFO] [Find Security Bugs] [2021-11-01T16:27:54Z] ▶ Found 1 analyzable projects.
[INFO] [Find Security Bugs] [2021-11-01T16:27:54Z] ▶ Building Mvnw project at /builds/myrepo/myproject.
[ERRO] [Find Security Bugs] [2021-11-01T16:29:08Z] ▶ Project couldn't be built: exit status 1
[FATA] [Find Security Bugs] [2021-11-01T16:29:08Z] ▶ exit status 1

我怎么知道出了什么问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-11-02 00:36:55

该错误位于容器的第二行到最后一行:

代码语言:javascript
复制
[ERRO] [Find Security Bugs] [2021-11-01T16:29:08Z] ▶ Project couldn't be built: exit status 1
[FATA] [Find Security Bugs] [2021-11-01T16:29:08Z] ▶ exit status 1

假设您的maven作业在本地构建良好,并且在不同的maven容器中构建良好,我建议您使用文档中定义的日志级别配置SAST作业的日志记录,并收集一些附加信息:https://docs.gitlab.com/ee/user/application_security/sast/#logging-level

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

https://stackoverflow.com/questions/69799975

复制
相关文章

相似问题

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