As I mentioned in my first post, the whole story is nationally regulated. Some things may be allowed in one country and prohibited in another.
Here some things were mentioned, which are forbidden in Germany. We have quite strict rules on this subject. Some examples: The PE connection to the chassis is exclusive, you are not allowed to attach any other grounding to it. Here is a diagram showing the structure of such a connection.
View attachment 101132
The PE of the supply cable must have at least the same cable diameter as the other supply cables and must be longer than these, so that if the supply cable is torn out of the strain relief, the PE conductor is the last to lose contact. PE soldering is not allowed AFAIK. There are further rules on this subject here in Germany, a final test of the protective grounding with a test device designed for this purpose is mandatory.
All the regulations on this topic are also subject to constant changes and harmonization with the rules of other countries, e.g. within the EU.