pin your hopes on something

To pin your hopes on something means that you are hopeful that someone or something is going to help you achieve what you want out of the current situation. You are pinning your hopes on something by just keeping faith things will work out in your favor rather than being sure of this or guaranteed this person or thing is actually going to help you succeed.