Actually building blocks can be checked out from Azure Devops Git repositories with SSH Keys.
Unfortunately, SSH keys are not easy to manage:
  • need of an Entra ID user
  • generate secret/public key pair
  • key pair will expire
  • credentials (ssh keys and user credentials) must be rotated via organization policy once a year
  • process is not fully automated
A far better way is to authenticate to Azure Devops Git repo via an Entra ID Service principal. Especially because you can authenticate via Identity Workload Federation.
See following article how to use git commands with Azure Devops Service principals.