如何使 GitHub Actions 与外部贡献者制作的 PR 配合使用?

发布于 2025-01-13 04:54:04 字数 1008 浏览 4 评论 0原文

我的 GitHub 操作 依赖 关于我在 repo:

GitHub Secrets

CI 在我推送提交时起作用:

https://github.com/paulrberg/prb-proxy/actions/runs/1958606928< /a>

但当外部贡献者从其分叉版本的存储库中创建 PR 时,它会失败:

https://github.com/paulrberg/prb-proxy/runs/4581619160

由于此错误,执行失败:

错误:请将 MNEMONIC 设置为环境变量

,但 MNEOMNIC 秘密就在那里。当外部贡献者的 PR 触发 GitHub Action 时,为什么它不起作用?

My GitHub actions depend on some GitHub secrets that I set in my repo:

GitHub secrets

CI works when I push a commit:

https://github.com/paulrberg/prb-proxy/actions/runs/1958606928

But it fails when an external contributor makes a PR from their forked version of the repo:

https://github.com/paulrberg/prb-proxy/runs/4581619160

The execution fails because of this error:

Error: Please set MNEMONIC as an env variable

But the MNEOMNIC secret is there. Why doesn't it work when the GitHub Action is triggered by a PR made by an external contributor?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文