for-each-ref: add "upstream" format field