-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A valid Github token shouldn't always be mandatory #28
Comments
Probably related to #27. |
As noted in #34, this isn't really my decision. :-( GitHub requires a token even for read-only access to packages. |
@djspiewak, thank you for making this great plugin. It is really helping make github packages easier to use with Scala. I ran into the same issue as described above and was able to work around it with: githubTokenSource := TokenSource.Or(
TokenSource.Environment("GITHUB_TOKEN"), // Injected during a github workflow for publishing
TokenSource.Environment("SHELL"), // safe to assume this will be set in all our devs environments, usually /bin/bash, doesn't matter what it is to prevent local errors
), The scenario we have is that we have one repo that is a multi-project build, where we build common jars that we want to publish internally. It does not use In our other private repos, we do configure it to use the |
With caveat because of djspiewak/sbt-github-packages#28
If my project uses the plugin just for publication, without needing to resolve any Github Package dependency, it should not pretend to have a valid GITHUB_TOKEN defined, so that the project could be built without specifying one.
Possible solutions:
The text was updated successfully, but these errors were encountered: