Skip to content
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

Hi All, #52

Open
vazand opened this issue Nov 24, 2022 · 0 comments
Open

Hi All, #52

vazand opened this issue Nov 24, 2022 · 0 comments

Comments

@vazand
Copy link

vazand commented Nov 24, 2022

    Hi All,

***I have some issues related to GITHUB_TOKEN (when i run my project ) ***

sbt:random-quotes> run
[error] stack trace is suppressed; run last credentials for the full output
[error] (credentials) unable to locate a valid GitHub token from Environment(GITHUB_TOKEN)
[error] Total time: 0 s, completed 24 Nov 2022, 13:18:42
sbt:random-quotes> last credentials
[error] java.lang.RuntimeException: unable to locate a valid GitHub token from Environment(GITHUB_TOKEN)
[error] at scala.sys.package$.error(package.scala:30)
[error] at sbtghpackages.GitHubPackagesPlugin$.$anonfun$authenticationSettings$2(GitHubPackagesPlugin.scala:53)
[error] at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] at sbt.Execute.work(Execute.scala:291)
[error] at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] at java.base/java.lang.Thread.run(Thread.java:829)
[error] (credentials) unable to locate a valid GitHub token from Environment(GITHUB_TOKEN)

i ca't understand why it can't locate my github_token.

my ~/.sbt/1.0/github.sbt

credentials +=
Credentials(
"GitHub Package Registry",
"maven.pkg.github.com",
"vazand",
"ghp_mygithub_token_that_has_repo_and_write_permissions")

here I attached my project link
please share your comments.
@ductridev how did you solved the error?
@nightscape I've tried put the token in ~/.bashrc and it did not work..! :(

Originally posted by @vazand in #26 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant