-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maven/Gradle: Add option to use Gitlab access token for authenticatio…
…n against maven repositories (#3403) * Added option to define custom_header * custom_headers added to metadata_finder for Maven * custom_headers option added to gradle module * Changed implementation to find host in git_sources * Rubocop offenses cleaned * Reverted formatting change * Added check to only use private-token header for gitlab repos * Gradle: Added check to only use private-token header for gitlab repos Refactoring: extracted auth details into separate class * Added tests for auth_details_finder classes * Update gradle/spec/dependabot/gradle/utils/auth_details_finder_spec.rb Co-authored-by: mo khan <[email protected]> * Using Base64.strict_encode64 to encode auth token * Regex update * renaming auth_details->auth_headers to reflect what it is * Added maven module as dependency on gradle. Code cleanup. * Added tests with multiple defined maven repositories, and reverted change to memoize result as multiple calls will be made * Test adjusted to only return found from one repo Co-authored-by: Niels Wittrup Andersen <[email protected]> Co-authored-by: mo khan <[email protected]>
- Loading branch information
1 parent
deb7826
commit b0416b0
Showing
11 changed files
with
566 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.