Place the onion, garlic, carrots, celery, zucchini, green beans, tomato sauce, vegetable broth, kidney beans, lentils, spinach, dried Italian herbs, salt, and pepper into the Instant Pot.
Close the Instant Pot lid and set it to the "soup" mode, which typically runs for 30 minutes.
While the soup is cooking, prepare 1 cup of whole grain or chickpea pasta on the stovetop according to the package instructions.
Once the soup is done cooking in the Instant Pot, allow for a natural pressure release or perform a quick pressure release, following the manufacturer's instructions.
Open the Instant Pot and stir in the cooked pasta.
Serve the soup hot, garnished with fresh basil leaves.