Commit fdd8067b authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'run-package-hunter-for-mrs' into 'master'

ci: Run package_hunter on MRs that updates yarn.lock

See merge request gitlab-org/gitlab!58780
parents e2319777 83303c0b
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- prm - prm
# For scheduling dast job # For scheduling dast job
extends: extends:
- .reports:schedule-dast - .reports:rules:schedule-dast
image: image:
name: "registry.gitlab.com/gitlab-org/security-products/dast:$DAST_VERSION" name: "registry.gitlab.com/gitlab-org/security-products/dast:$DAST_VERSION"
resource_group: dast_scan resource_group: dast_scan
......
...@@ -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: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/
......
...@@ -996,13 +996,19 @@ ...@@ -996,13 +996,19 @@
when: manual when: manual
allow_failure: true allow_failure: true
.reports:schedule-dast: .reports:rules:schedule-dast:
rules: rules:
- if: '$DAST_DISABLED || $GITLAB_FEATURES !~ /\bdast\b/' - if: '$DAST_DISABLED || $GITLAB_FEATURES !~ /\bdast\b/'
when: never when: never
- <<: *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