Security of supply during the energy transition