Cherry pick wildcard in target or runname support from v1.66