There is currently an issue with kdesrc-build (will be updated soon)
On the Matrix channels they said they fixed it like this:
This is what I did:
git config --global --add url.http://invent.kde.org/.insteadOf kde:
git config --global --add url.ssh://git@invent.kde.org/.pushInsteadOf kde: