简体   繁体   English

Github 组织使用机密、操作和 PAT

[英]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).我创建了一个 GitHub 组织(并且还为 GitHub 企业付费,因为没有任何效果,我变得有点绝望)。 Note, I'm completely new to Github organization stuff, be kind lol.请注意,我对 Github 组织的东西完全陌生,请善待大声笑。 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 ().我正在尝试将本地更改推送到 GitHub,这应该会触发对 DigitalOcean 的部署,这里是指向 .yml 文件的链接()。 So far so good, but at the end of the build, ssh-login part it says:到目前为止一切顺利,但在构建结束时,ssh-login 部分显示:

"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." “来自守护程序的错误响应:未经授权:您的请求无法通过 GitHub 包服务进行身份验证。请确保您的访问令牌有效并配置了适当的范围。”

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?我错过了什么或做错了什么?

I found it thanks to this article: https://github.community/t/personal-access-token-deleting-itself/13955由于这篇文章,我找到了它: https://github.community/t/personal-access-token-deleting-itself/13955

I hard coded the PAT in my.yml file, so Github deleted it automatically.我在 my.yml 文件中对 PAT 进行了硬编码,因此 Github 自动将其删除。 Now it works!现在它起作用了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM