Vendoring dependencies is usually not the same thing as ripping off someone else’s code.
It usually just boils down to keeping a copy of the version of a dependency you used.
It usually just boils down to keeping a copy of the version of a dependency you used.
This is actually one of the most common causes for GPL violations. And companies have gotten into serious trouble for that.
Either rewrite the code, or maintain it as a dependency and follow the licensing rules. Don't simply copy code from it into your project unless you have explicit reason to believe that that is OK to do.