Use a syringe with a long tip and straight hole, if at all possible - but any needle will work, if your pesto is fine enough. Needles with a little bit of a wider tip (unlike what I used in the photo above) work better to prevent jamming up.