Q.Growing herbs in window box and mushroom infestation
I reported 3 separate pots of herbs and now 3 weeks later mushrooms are appearing. I need to know if I should discard all the herds due to contamination. I also notice a brown thickish liquid on the rim of the pots closest to where the mushrooms are. They are prolific in the 2 pots bought from the garden centre and only one was found in the pot bought from the supermarket. I wonder if the garden centre soil was contaminated.

The fungus or mushrooms themselves are not harmful to the plants; they are likely growing due to excess moisture in the soil. Make sure the soil is well draining. Allow it to dry out slightly between waterings and try to increase air circulation around the plantings.
https://www.gardeningknowhow.com/edible/herbs/hgen/herb-plants-growing-in-one-pot.htm