Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

joshuaf's avatar

Token / Security issue with Spark after migration to Github

I recently moved my code from bitbucket to github. I also created a pipeline on heroku with a new staging app. When I try to push code to the staging app, the spark install fails with the following error ...

Failed to download laravel/spark from dist: ... ... Failed to execute git clone --no-checkout '[email protected]:laravel/spark.git' '/tmp/build_b...

I believe that this is because I need to set a token or something for spark to recognize the repo coming from github? Although I am still logged into github with the same account ... Anyway, I am connected to spark's repo and while there is mention in the install docs of composer prompting you for a token, there isn't any description of what this is, where to get it, or where to place it.

I had the same issue a year ago and it appeared to be due to the fact that my associate purchased the license and not me. I had to buy a second license to fix the issue. Been stuck on this for a few days and could use some help. Thanks

0 likes
3 replies
ejdelmonico's avatar

You need a valid Spark license token. You can enter it via command line.

joshuaf's avatar

How do I get that token and what's the command to enter it? I tried the "spark token" and it isn't recognized.

joshuaf's avatar

Also, I installed and upgraded via composer and not the command line. The docs say that spark should have prompted me for a token if one was needed. I have also been using this repo for a while and it has been working fine.

Please or to participate in this conversation.