Headtube dent, how safe is it?
The dent is not in a high stress area.

If the headset turns OK, I would ride it.

Inspect regularly for cracks, both near the crack as well as the welded side of the headset.