Fix license finder when using JH gemfile
What does this MR do and why?
Adapts license_finder in static-analysis to handle both Gemfile in gitlab-org/gitlab and jh/Gemfile on JiHu pipeline.
It creates 2 separate tasks for license_finder, one for npm, yarn and pipenv, another for bundler.
The task for bundler requires a specific --project-path, either CI_PROJECT_DIR or CI_PROJECT_DIR/jh on JiHu pipeline.
How to test?
- cherry-pick gitlab-jh/gitlab!76 (9695b842)
- Set gemfile to
jh/Gemfile.
bundle config set --local gemfile jh/Gemfile`
Before, using license_finder 6.0.0
bundle exec license_finder
# fails
Update license_finder to 6.1.4:
bundle update license_finder
bundle exec license_finder --enabled-package-managers bundler --decisions-file config/dependency_decisions.yml --project-path 'jh'
Edited by Albert