bazelbuild / rules_jvm_external

Bazel rules to resolve, fetch and export Maven artifacts
Apache License 2.0
316 stars 236 forks source link

Support token-based auth in maven_export/MavenPublisher #1186

Open SanjayVas opened 4 days ago

SanjayVas commented 4 days ago

The maven_export rule and the corresponding MavenPublisher application only support basic auth using username/password. This does not work for repositories which use token-based auth. The most common example of this is GitHub Packages, where uploading via a GitHub Actions is done using GITHUB_TOKEN.

For GitHub specifically there is a workaround using a personal access token (classic), but this effectively means having to authenticate as a single GitHub user with the right permissions.