Correct scoping and run artifact publishing in goroutine