Why do you need this?
Just pin your actions to shasum
Just pin your actions to shasum
This is a long solved problem in every other ecosystem. This particular implementation isn't great but it has the right idea.
Depending on the action you use, this is no small task. You might as well just switch to something else altogether.