Error message for disallowed non-pinned actions should include the actions call stack #192020
Replies: 2 comments
-
|
💬 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.
-
|
Hi @MasterCarl, This is a very valid concern, and I’ve run into the same issue in larger repositories. Right now, the error message:
is technically correct, but not very actionable. In setups with multiple reusable workflows and nested actions, it becomes difficult to trace where that non-pinned reference is actually coming from. The core problem is that GitHub reports the violation at the resolution level, but doesn’t expose the execution path that led to it. So if the action is:
you’re left guessing unless debug logging is enabled. Including a call stack (or even partial trace) would make a big difference. For example:
Even something minimal like:
As you pointed out, debug logs do expose this information, which suggests the data is already available internally — it’s just not surfaced in the default error output. From a usability standpoint, this is one of those cases where:
In larger CI setups, that turns what should be a quick fix into a time-consuming search problem. Your suggestion to include both the location (file/line) and the workflow call chain makes a lot of sense, especially as more teams adopt reusable workflows and stricter policies. This would significantly improve debuggability without weakening the security model. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Actions Runner
Discussion Details
The error message for disallowed non-pinned actions should include the actions "call stack". Right now, in a repository with dozens of actions, it's very hard to find out which action dependency might use a non-SHA version. Only when debug logging is activated, the logs point to which action contains the version tag in question.
We got the following message:
The error message should include the file and line number where the action is referenced, and ideally also which workflow(s) call it, since the action might be defined in a different repository altogether.
Beta Was this translation helpful? Give feedback.
All reactions