Sternum Hurts When Pecs Contract

It used to be only dips, but it has started to hurt when i flex and when i do push ups. the pain is felt in the sternum.

anyone know what this might be and how to fix it?

Might help.

You might also have a rib misalignment.