This is a nice variation of the classic pesto, with a little less bite since the garlic scape is a bit more mild.
Place garlic scapes in a food processor and pulse until finely chopped.
Add in the pine nuts and pulse again until chopped. (The nuts can be left out if there is a nut allergy)
With the food processor on, drizzle in the olive oil slowly so it incorporates into the mixture.
Add in the basil and parmesan cheese and process again until smooth.
Lastly, add in the lemon and a few grinds of pepper and pulse again to combine. Taste and add additional salt or pepper as needed.