GitHub Action - Cannot Read Action Repository Secrets #157452
-
Select Topic AreaBug BodyHello, I tried it in one repository, and it worked: I tried it in another repository (by my user and by a user who has permission to add secrets), and it failed: In both cases, the secret (with the name: "SLACK_WEBHOOK_URL") was added in the settings -> security -> Secrets and variables -> Actions, under "Repository secrets" (we also tried without underscores and it still didn't work). Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
It either doesn't think that webhook secret exists, or it is empty, based on the error message. I know you have checked it, but let's check it one more time. In fact, just create a new secret called MYWEBHOOK and put the slack webhook in there, change your code, and see what happens. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mickeygousset, |
Beta Was this translation helpful? Give feedback.
@shirady Thanks for the confirmation! I looked at the PR that failed and it was created from a fork. From what I found in the documentation this looks like the root cause.
Could you have someone with write access to the destination repo create the branch and PR directly in the destination repo, instead of from a fork? Hopefully that resolves the issue with the Slack webhook. Let me know how it goes!