Knead a pasta dough from the flour, eggs, salt and oil. Wrap in foil and let rest for at least 1/2 hour, better longer. Then roll out in portions.
Finely chop the basil leaves, press the garlic through the press. Mix all ingredients for the filling thoroughly, season with salt and pepper. Salt carefully, as the parmesan and pecorino are already quite salty!
Shape the dumplings and fill them with them, close tightly.
Melt the butter in the pan and fry the spring onions, cut into fine rings, lightly salted.
Cook the dumplings in boiling salted water for 3-4 minutes, place on a plate and serve with the sauce.