There are several docker actions which are forbidden on Github actions. See: https://github.com/actions/docker/issues/7
Being able to enforce the same locally would make debugging workflows easier.
But, given there's no list of which actions are forbidden, it might be tricky to enforce the same locally.