Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github organization using secrets, actions and PAT's

I've created a GitHub organization (and also pay for GitHub enterprise because nothing worked and I became a bit desperate). Note, I'm completely new to Github organization stuff, be kind lol. What's wrong? I'm trying to push local changes to GitHub, which should trigger a deploy to DigitalOcean here is the link to the .yml file (). So far so good, but at the end of the build, ssh-login part it says:

"Error response from daemon: unauthorized: Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured."

In my terminal I do get the same error with:

docker login docker.pkg.github.com -u <UserName> -p <GitHub Personal Access Token>

docker pull docker.pkg.github.com/quanttrade-io/quanttrade-api/quanttrade-api:latest

And I've also tried:

docker login docker.pkg.github.com -u <Organization name> -p <GitHub Personal Access Token>

What am I missing or doing wrong?

like image 832
tpotjj Avatar asked Feb 22 '26 17:02

tpotjj


1 Answers

I found it thanks to this article: https://github.community/t/personal-access-token-deleting-itself/13955

I hard coded the PAT in my .yml file, so Github deleted it automatically. Now it works!

like image 189
tpotjj Avatar answered Feb 24 '26 07:02

tpotjj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!