Place basil, garlic, walnuts, Parmesan, and salt in a food processor. With the machine running, slowly add olive oil until mixture is smooth. Store in an airtight container in the refrigerator for up to 1 week.