Can’t really see anything in the picture but is it leaving a wet spot or rust spot?
Do you have a sunroof?
If so open it and clean the edges of the glass, and the rubber seal bother really well.
Had the windshield replaced?
If so the glass shop maybe didn't do it right, if so they should fix it for free.
No sunroof
I bought it used, so no idea about the windshield.
I would start with the most obvious thing. Take it to a glass shop, have them remove the windshield. Clean the glass and the surface of the truck it seals to, and reinstall it. When i worked at a glass shop we sometimes got in a leaky windshield vehicle to repair that had been to a shop that did improper installations.