Depends.. how deep are you ? 10bb or 100? What it's the structure? It's a freeroll? There are a lot of thing that you need to consider before making a decision.
Let's say you have 15bb and a player shoved for 6
hands in a row for example, he shoves again and you have AT, insta call. If you are 200bb deep just fold and wait for a better spot. But you are gonna lose sometimes evan in this case. If he shoves every single hand you will be probably like 60-65% pre so you will loose sometimes.