Avoid code duplication when authorizing upload

3 jobs for next-release in 1 minute (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #351284981
test_app_php56

00:00:53

passed #351284980
test_app_php70

00:00:55

passed #351284979
test_app_php71

00:01:00