我检查了一个Ruby-App并阅读了文档[1]并编写了一个.gitlab-ci.yml:
<mat-form-field class="mat-headline">
但是我的依赖检查被破坏了[2]。我得到了:
before_script:
- ruby -v
- which ruby
- gem install bundler --no-ri --no-rdoc rake
- bundle install --jobs $(nproc) "${FLAGS[@]}"
rspec:
script:
- bundle exec rspec
dependency_scanning:
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}"
--volume "$PWD:/code"
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
artifacts:
paths: [gl-dependency-scanning-report.json]
我能做些什么来测试应用程序?
[1] https://docs.gitlab.com/ee/ci/examples/dependency_scanning.html [2] https://gitlab.com/saigkill/hoe-manns/-/jobs/71716014