Continuous integration Gitlab CI include未触发
预期:CI需要触发构建和测试,然后它应该扫描依赖项漏洞 当前行为CI触发器,但仅运行构建和测试,而不运行Dependency-Scanning.gitlab-CI.ymlContinuous integration Gitlab CI include未触发,continuous-integration,yaml,gitlab-ci,Continuous Integration,Yaml,Gitlab Ci,预期:CI需要触发构建和测试,然后它应该扫描依赖项漏洞 当前行为CI触发器,但仅运行构建和测试,而不运行Dependency-Scanning.gitlab-CI.yml stages: - build - test build: stage: build script: - echo "Building" test: stage: test script: - echo "Testing" include:
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中找到
您可以尝试将其移动到文件顶部。对我有用 你能把这个错误扔到你的帖子里吗?如果你使用CI linter,你会得到这样的结果吗
请也包括
依赖项扫描.gitlab ci.yml
的内容,以便我们可以帮助您
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