I’m running GitLab CI on gitlab.com, and have been using the dependency scanner by adding this to my
This works great! Except that it’s running on every branch, and while this provides really good information, it takes about 5mins to run, which is too much for a feature branch.
I’ve read the documentation but haven’t found a way to turn off selectively.
Is this possible?
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- Read more about
If my answer solves your problem, please mark as the solution, else provide more information so we can figure this out.
I’m not using
rules in my
.gitlab-ci.yml file yet, but this worked:
I didn’t know that I could merge configuration into a template! Thank you
I’m glad it worked!
There’s a reason I used “rules” (link)