我试着在Gitlab上跟随这些用于集成静态应用程序安全测试(SAST)的简单说明进入我的Android /CD管道。但是,在使用CI衬套工具时,我得到了以下错误
sast job: chosen stage does not exist; available stages are .pre, stg_build, stg_test, .post下面是我的..gitlab ci.yml的最简单版本,它复制了错误:
include:
- template: Security/SAST.gitlab-ci.yml
variables:
SAST_EXPERIMENTAL_FEATURES: "true"
stages:
- stg_build
- stg_test我在GitLab:选择的阶段不存在中发现了一个类似的错误,但这是关于尝试使用一个环境变量作为一个艺名。
如何防止此错误并使SAST用于Gitlab上的合并请求?
发布于 2021-08-12 22:25:49
问题是,Security/SAST.gitlab-ci.yml模板希望有一个名为test的阶段,但是.gitlab-ci.yml中的测试阶段被重命名为"stg_test“。
我找到了两种满足CI Lint工具的方法:
sast:
stage: stg_test资料来源:
https://stackoverflow.com/questions/68764789
复制相似问题