The general rule for any type of content not made by you that you want to integrate to any project is simple as it could be: you need a license, a written permission of the author or any legal document that grants to you the specific right to use as you intend.
By the way, this very specific thread was created almost two years ago in an attempt to address doubts on several levels and it is a “must” read for every developer: