license_finder does not respect bundler Gemfile config

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

This was discovered at !69461 (comment 667629118) and here's a most recent failure: https://gitlab.com/gitlab-jh/gitlab/-/jobs/1560768053

In particular, this section probably didn't use bundler in a correct way: https://github.com/pivotal/LicenseFinder/blob/v6.0.0/lib/license_finder/package_managers/bundler.rb#L60-L64

We need to patch license_finder to fix that.

In order to test this, picking gitlab-jh/gitlab!76 (merged) and run bundle config set --local gemfile jh/Gemfile should reproduce it.

Related upstream issue:

Edited by 🤖 GitLab Bot 🤖