Multirepository checkout

a beginners question:
we have two projects , lets say A and B with their own repositories. In a pipeline we configure the default repository A and checkout works as expected.Now we need the other repository B, too. What is the gitlab way to access the data from B?

best regards,