There are more recent resources, but see for example from 1993:
"The Ethical Engineer: An "Ethics Construction Kit" Places Engineering in a New Light" by Eugene Schlossberger
https://www.goodreads.com/book/show/17137987-the-ethical-eng...
"On occasion, professionals need to use moral reasoning as well as engineering skills to function effectively in their occupation. Eugene Schlossberger has created a practical guide to ethical decision-making for engineers, students, and workers in business and industry. The Ethical Engineer sets out the tools and materials essential to dealing with whistle-blowing, environmental and safety concerns, bidding, confidentiality, conflict of interest, sales ethics, advertising, employer-employee relations, when to fight a battle, and when to break the rules. The author offers recommendations and techniques as well as rules, principles, and values that can guide the reader. Lively examples, engaging anecdotes, witty comments, and well-reasoned analysis prove his conviction that ""ethics is good business."

Langdon Winner is another person who writes on this topic at a more abstract societal level, like in his "Autonomous technology: technics-out-of-control as a theme in political thought". https://www.langdonwinner.com/

And see also "Disciplined Minds" by Jeff Schmidt:
http://disciplinedminds.tripod.com/
"Who are you going to be? That is the question.
In this riveting book about the world of professional work, Jeff Schmidt demonstrates that the workplace is a battleground for the very identity of the individual, as is graduate school, where professionals are trained. He shows that professional work is inherently political, and that professionals are hired to subordinate their own vision and maintain strict "ideological discipline."
The hidden root of much career dissatisfaction, argues Schmidt, is the professional's lack of control over the political component of his or her creative work. Many professionals set out to make a contribution to society and add meaning to their lives. Yet our system of professional education and employment abusively inculcates an acceptance of politically subordinate roles in which professionals typically do not make a significant difference, undermining the creative potential of individuals, organizations and even democracy.
Schmidt details the battle one must fight to be an independent thinker and to pursue one's own social vision in today's corporate society. He shows how an honest reassessment of what it really means to be a professional employee can be remarkably liberating. After reading this brutally frank book, no one who works for a living will ever think the same way about his or her job."

But there are no end of others. But living up to your ideals is often easier said then done in so many areas of life... It helps to have a group of people with common ideals to support each other.

But for example, when I was in CivilEngineering&OR graduate school in Princeton in the late 1980s, I was essentially told by the then director of graduate studies that taking a public policy course from Frank von Hippel ( https://www.princeton.edu/sgs/faculty-staff/frank-von-hippel... ) that included topics like ethics and engineering policy especially about energy policy and weapons proliferation would hurt my career there and was strongly discouraged from taking it. I took it anyway. :-) But that was all no doubt part of why I ended up leaving after a year. The majority of other engineering students even then were from other countries and funded by their governments or companies and had less choice in how compliant they had to be.

That was perhaps a reason Princeton lost a chance at maybe being the first to develop the web (although I made many mistakes myself along the way too):
https://pdfernhout.net/princeton-graduate-school-plans.html
"This was my proposal for graduate studies at Princeton University twenty [now thirty] years ago (and in some ways includes a proposal for creating a mini-Google and a mini-World-Wide-Web. :-)."