How to propagate my GitHub login token into submodules?



I have a workspace that’s cloned from a GitHub repo, and I recently had to make another of my GitHub repos a submodule of it. Whenever I push changes to that submodule, I’m prompted for a username and password. How do I get Git to use the same saved credentials for the submodule as it uses for the main repo?