Gitlab CI include is not triggering



预期:CI需要触发构建和测试,然后它应该扫描依赖性漏洞

当前行为CI触发器,但仅运行构建和测试,而不运行Dependency-Scanning.gitlab-CI.yml

stages:
- build
- test
build:
stage: build
script:
- echo "Building"
test:
stage: test
script:
- echo "Testing"
include:
- template: Dependency-Scanning.gitlab-ci.yml

Dependency-Scanning.gitlab-ci.yml可以在以下URL中找到https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Security/Dependency-Scanning.gitlab-ci.yml

您可以尝试将其移动到文件的顶部。对我有用。

你能把错误写在帖子里吗?如果你使用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 

最新更新