Я бы использовал JsonSlurper для анализа результатов URL. Например, если вы хотите, чтобы все URL-адреса, вы просто сделали бы
Authenticator.default = new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication ("username", "password".toCharArray())
}
}
new groovy.json.JsonSlurper().parseText("https://api.github.com/orgs/myOrg/repos".toURL().text).url
Очевидно, что если он публикует c репозитории и организации, вам не нужна часть аутентификации.