It depends on why your roof is leaking.
If your roof was damaged by a covered peril such as fire lightning etc. Then your Homeowners insurance would cover the damage.
If your roof is old and worn out, it just needs to be replaced and would not be covered by your homeowners insurance. Roofs require the home owners maintenance and upkeep along with replacement every 20 years or so. It's just part of the cost of owning a home. Failure to engage in expected normal maintenance of your home can be interpreted as a moral hazard and can result in cancellation of your homes insurance policy.
If your roof is fairly new and you just have a leak with no visible damage, then it is most likely the result of faulty workmanship and again, not covered by your home insurance policy.
Chat with our AI personalities