I had that in my last pregnancy and it turned out I had an infection and needed antibiotics.
It might also be your mucus plug
I definitely think that is an infection maybe a bacterial infection. I'm sure it's nothing serious but you should def get checked out
I think you should call your doctor cause if it's green it may be an infection... Call and see what they want you to do... Because you're so far along they will see you faster...