Either fresh or dried rosemary can work for a bread recipe. Make sure to convert the measurements by using 1 teaspoon of dried herbs for every 1 tablespoon of fresh herbs.
Overall, fresh herbs just offer a bit more boldness to the end result so use them if you’ve got them.