That's non-trivial to do in practice.
It's already incentivized, via inspections and fines. What you're presumably talking about is prioritizing it above other incentives.
Which gets into how much risk is acceptable and how much risk mitigation is reasonable to pay for. Hint: never enough that risk approaches zero.
I absolutely think fines (and especially inspections, or likelihood of catching violations) should be increased, but the world economy is still transitioning off oil.
It's easy to forget that we can absolutely put such a premium on risk that energy prices spike, that suppresses downstream consumers and economic activity, that causes worse outcomes.
IMHO, accelerating the shift to clean renewables, while simultaneously continuing to raise fines and regulation on oil pipelines as the actual energy mix shifts is the optimal choice.