预期:CI需要触发构建和测试,然后应扫描依赖项漏洞
当前行为CI触发,但仅运行生成和测试,不运行依赖关系-Scaning.gitlab-ci.yml
stages:
- build
- test
build:
stage: build
script:
- echo "Building"
test:
stage: test
script:
- echo "Testing"
include:
- template: Dependency-Scanning.gitlab-ci.ymlDependency-Scaning.gitlab-ci.yml可以在以下https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Security/Dependency-Scanning.gitlab-ci.yml中找到
发布于 2020-03-16 16:41:01
您可以尝试将其移动到文件的顶部。这对我很有效。
你能在你的帖子里抛出这个错误吗?如果你使用CI林特,你会得到这样的东西吗?https://gitlab.com/amishpanda/cheatsheet/-/ci/lint
Found errors in your .gitlab-ci.yml:
dependency_scanning job: stage parameter should be .pre
setup
build
.post
You can also test your .gitlab-ci.yml in CI Lint https://stackoverflow.com/questions/60278922
复制相似问题