Hi,
My apologies if this is the wrong place to post this. In that case please let me know where it should go and I'll go away.
I host my books on Github using the deploy option on the CLI. I recently received an email from Github with the following message:
I was able to ascertain that the problem is that when I deploy a document using: $ pretext deploy -u
the following line goes into the log file on Github:
Attempting to connect to remote repository at `https://ecb5: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@github.com/ecb5/ASORA-SecondEd.git`
Apparently the folks at Github routinely search accounts for security breaches and this is one. The characters I've boldfaced above are the Access Token that allows me to do the upload.
I made a new token and I'm able to deploy again, but I expect that it will also be revoked when the security sweep at Github comes round to me again, so I'm wondering if the deployment script could be modified to not include the Access Code?
Maybe replace it with: https://ecb5:<YourPersonalAccessToken>@github.com/ecb5/ASORA-SecondEd.git`
I'm running Linux, Ubuntu 24.04.3 LTS, and PreText version 2.29.2 in case it matters.
Thank you,
-- Bud
On Oct 20, 2025, at 3:19 PM, Eugene Boman <budb...@gmail.com> wrote:
Hi,
My apologies if this is the wrong place to post this. In that case please let me know where it should go and I'll go away.
I host my books on Github using the deploy option on the CLI. I recently received an email from Github with the following message:
<WUhhcaLMYvef0fLU.png>
I was able to ascertain that the problem is that when I deploy a document using: $ pretext deploy -u
the following line goes into the log file on Github:
Attempting to connect to remote repository at `https://ecb5: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@github.com/ecb5/ASORA-SecondEd.git`
Apparently the folks at Github routinely search accounts for security breaches and this is one. The characters I've boldfaced above are the Access Token that allows me to do the upload.
I made a new token and I'm able to deploy again, but I expect that it will also be revoked when the security sweep at Github comes round to me again, so I'm wondering if the deployment script could be modified to not include the Access Code?
Maybe replace it with: https://ecb5:<YourPersonalAccessToken>@github.com/ecb5/ASORA-SecondEd.git`
I'm running Linux, Ubuntu 24.04.3 LTS, and PreText version 2.29.2 in case it matters.
Thank you,
-- Bud
--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/4aef39de-386f-46f5-9847-9134fae34bb3%40gmail.com.
Thanks Mitch,
It appears that I didn't have a .gitignore file at all, so I've just created one with the single line: *.log. Hopefully that will do the trick.
As to there being something unusual in my configuration, I wouldn't be a bit surprised :-) (I assume you mean my github configuration, not PreTeXt, right?)
I have only the most rudimentary understanding of what happens when I run "pretext deploy", and most of my understanding of Github comes from chasing down errors and warnings from past deployments.
So given that, would you like to take a guess what the unusual configuration might be? Or how I might find it myself? Or fix it? Obviously you'll have to explain it to me like I'm and eight-year-old, so I understand if you don't wanna do it.
Any help would be appreciated though.
-- Bud
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/0C32C8C0-D781-4006-BE53-628DD0C72DCA%40rellek.net.
Thank you Oscar. I'll give this a shot later (right now my wife is calling me).
I'll follow up after to report success or to ask for more help.
Thanks again,
-- Bud
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/9468e69b-ce0b-4fe1-b7fc-062f03e18743n%40googlegroups.com.
Hi Oscar,
It took me some time to get back to this. I followed the steps you gave me. All appeared to go well until the last step. When I executed step 5 (git push) I got the following error:
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin main
To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
I tried running "git push --set-upstream origin main" as directed but that got me more error messages and instructions, the upshot of which seems to be that there is a "blocked push". This is at the outer edge of my understanding. Do you have any ideas?
If you're willing to hold my hand a little longer I'm willing to have it held, but I don't want to waste your time. It begins to look to me as if in my ignorance I've buggered something I don't understand. The most efficient course might be to run "pretext new book", move my PreTeXt files into there and start again.
But before I do that I'd like to hear your opinion. Any thoughts?
-- Bud
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/9468e69b-ce0b-4fe1-b7fc-062f03e18743n%40googlegroups.com.