Publishing code on GitHub does not make it free to use. As the site itself explains, without a license the work is under exclusive copyright and nobody can legally copy, distribute or modify it. That applies to your project and to the dependency you want to use: if it has no license, the way forward is to ask the maintainer to add one.
The site is maintained by GitHub and starts from practical questions. Want something simple and permissive? MIT. Want improvements shared back? GPLv3. A separate page lists the other licenses, each with a summary of what it permits, requires and does not cover.
It does not replace a lawyer when a company or client is involved, but it settles the question for a personal or portfolio project in a few minutes. Pairs with readme.so to add the license section to your README.