-
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
JVM Property alternative for credentials #24
Comments
Happy to accept a PR for a |
I agree this would be helpful, but I'm doing this as a quick/dirty solution if you need it.
|
That workaround is not working for me. |
Does the personal access token you used have the packages scopes set? The ~/.gitconfig file should have a line like this.
|
Yes, and that is what I have in the .gitconfig file. |
I have tried the similar |
This did not work for me. I had it configured via the environment variable. I got around this, as a workaround, by using the sbt-dotenv plugin. After this, everything worked without any changes in the IntelliJ configuration or otherwise. |
A variation of a workaround suggested in this issue worked for my IntelliJ setup.
|
I share that our team thought we had this issue settled with single-project and with multi-project builds by injecting the githubTokenSource value as a common setting into each project's configuration block in the build.sbt. Everything went well for users, IDEs, and GitHub Action workspaces that either had a ~/.gitconfig github.token entry or had a GITHUB_TOKEN env variable. Until one of us decided to use the Lagom plugin's This dies immediately for the original problem. The forked context used by the Lagom plugin for deploying the service swarm lacks both the environment variable and a ~/.gitconfig file. We are researching ways to set the environment for that forked execution environment. However, the overall assumption that a GITHUB_TOKEN must be provided even if the GitHub Package plugin tasks are not being called up is proving to be frustrating for our users and bots that don't happen to already have that token readily available. |
SBT gurus. Is there a proper way to "inject" a setting (especially It is onerous to have to explicitly claim the location of a credential which is invariant across all those permutations over and over, having to drill into the details of how SBT manages namespaces or state caches. Perhaps this is not the fault of this particular plugin but this plugin is the one getting blamed for having to do all this internal SBT surgery to try to cover all cases. |
IntelliJ cannot load projects with this plugin because it offers no way of defining environment variables to be set for sbt when loading a project. Setting them for an app on MacOS seems to be unreliable, as previously working techniques were broken on OS updates.
It would be nice if the github token could be alternatively provided as a JVM property, which can be easily set.
The text was updated successfully, but these errors were encountered: