Skip to content

ci: run dependency and license scanner on MRs only if go.mod changed

What does this MR do?

Dependency scanners and license scanning in particular take up the majority of CI usage in Pages (see pipeline for latest commit: https://gitlab.com/gitlab-org/gitlab-pages/-/pipelines/556342912/builds).

This MR changes gemnasium dependency scanner and license scanning for MRs to only run if go.mod changed.

Note: dependency scanners run regardless of go.mod for full pipelines (commit/merge).

This is part of an effort to reduce CI minutes consumption in GitLab products in response to the recent change in CI/CD minutes usage for contributors.

TODO

Merge request reports