You can configure remote repositories to download PHP Composer packages directly from git.drupalcode.org.
In the Administration module, select Repositories.
Select an existing Composer repository from the Remote list, or create a new remote Composer repository. For more information, see Create a Composer Repository.
On the Basic configuration tab, under Composer Settings, configure the following fields:
Git providers: Select Custom.
Download URL: Enter
https://git.drupalcode.org/{0}/{1}/-/archive/{2}.{3}Note
Do not change the numbers in the URL. They correspond to
orgName,packageName,commitID, andformat.
Click Save.