Commit 83303c0b authored by Rémy Coutable's avatar Rémy Coutable

ci: Run package_hunter on MRs that updates yarn.lock

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 2af94e1f
...@@ -143,12 +143,13 @@ dependency_scanning gemnasium-python: ...@@ -143,12 +143,13 @@ dependency_scanning gemnasium-python:
# See https://gitlab.com/gitlab-com/gl-security/security-research/package-hunter # See https://gitlab.com/gitlab-com/gl-security/security-research/package-hunter
package_hunter: package_hunter:
extends: extends:
- .reports:rules:schedule-dast - .reports:rules:package_hunter
stage: test stage: test
image: image:
name: registry.gitlab.com/gitlab-com/gl-security/security-research/package-hunter-cli:latest name: registry.gitlab.com/gitlab-com/gl-security/security-research/package-hunter-cli:latest
entrypoint: [""] entrypoint: [""]
needs: [] needs: []
allow_failure: true
script: script:
- rm -r spec locale .git app/assets/images doc/ - rm -r spec locale .git app/assets/images doc/
- cd .. && tar -I "gzip --best" -cf gitlab.tgz gitlab/ - cd .. && tar -I "gzip --best" -cf gitlab.tgz gitlab/
......
...@@ -995,6 +995,12 @@ ...@@ -995,6 +995,12 @@
- <<: *if-default-branch-schedule-nightly - <<: *if-default-branch-schedule-nightly
allow_failure: true allow_failure: true
.reports:rules:package_hunter:
rules:
- <<: *if-default-branch-schedule-2-hourly
- <<: *if-merge-request
changes: ["yarn.lock"]
.reports:rules:license_scanning: .reports:rules:license_scanning:
rules: rules:
- if: '$LICENSE_SCANNING_DISABLED || $GITLAB_FEATURES !~ /\blicense_scanning\b/' - if: '$LICENSE_SCANNING_DISABLED || $GITLAB_FEATURES !~ /\blicense_scanning\b/'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment