In Australia it's the board of directors who are liable. They can be liable if they personally direct the company to do something illegal (obviously?) but there is also a positive obligation to exercise due diligence. This covers (but is not limited to) workplace safety and safety of customers and the public. Directors can be personally liable for breaches of this duty and the penalties extend to possible imprisonment and very substantial fines.
For example: https://www.owhsp.qld.gov.au/court-report/fines-imposed-fail...