简体   繁体   English

secrets.GITHUB_TOKEN 可能在 github 操作中过期?

[英]secrets.GITHUB_TOKEN could be expired in github action?

I have a private image/repo used in my dependencies.我的依赖项中使用了一个私有图像/存储库。 Today, I pushed 3 times into my repo, first two times my action-ci showed install private dependencies success, but the last time is failed, the error is about access denied.今天,我将 3 次推送到我的 repo 中,前两次我的 action-ci 显示安装私有依赖项成功,但最后一次失败,错误是关于访问被拒绝。 I did not change anything from the setting or the code, I don't know why it gave me this error.我没有更改设置或代码的任何内容,我不知道为什么它给了我这个错误。 I check the registry setting, I am 100% sure I gave the repo with full permission to install that private image/repo.我检查了注册表设置,我 100% 确定我已授予 repo 以安装该私有映像/repo 的完全权限。 I think secrets.GITHUB_TOKEN could be expired?我认为 secrets.GITHUB_TOKEN 可能会过期? or what setting is wrong.或者什么设置错误。

Thanks for any help.谢谢你的帮助。

run: login
 username: ${{ GitHub.actor }}
 password: ${{ secrets.GITHUB_TOKEN }}
 registry: ghrc.io
run: npm ci
 env: ${{ secrets.GITHUB_TOKEN }}

As mentioned in " The GITHUB_TOKEN in GitHub Actions: How it Works " (from Davide 'CoderDave' Benvegnù ), GitHub automatically creates a GITHUB_TOKEN secret for you to use in your workflow, and you can use it to authenticate in a workflow run.正如“ GitHub Actions: How it Works 中的 GITHUB_TOKEN ”(来自Davide 'CoderDave' Benvegnù )中所述,GitHub 自动创建一个 GITHUB_TOKEN 密码供您在工作流程中使用,您可以使用它在工作流程运行中进行身份验证。

That means it should not "expire" during the execution of the very workflow it was created for authentication.这意味着它不应该在执行为身份验证创建的工作流期间“过期”。

Check first if the issue persists later on today.首先检查问题是否在今天晚些时候仍然存在。

There was a significant outage yesterday which did impacted GitHub Action execution.昨天发生了严重中断,确实影响了 GitHub 操作的执行。

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

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