This is a nice little book that attempts to succinctly define a common code of ethics from a Dharmic perspective. Definitely worth a look, especially for the younger folks or those just starting their spiritual journey. The author is an editor of online blogs and publications such as Indic Today, IndiaFacts, and Advaita Academy.
Samanya Dharma: Ethical Duties common to All by Nithin Sridhar: https://www.amazon.com/Samanya-Dharma-Ethical-Duties-common-ebook/dp/B08941VKWK/ref=sr_1_2?dchild=1&keywords=nithin+sridhar&qid=1626651836&sr=8-2