if (!Jenkins.getInstance().hasPermission(Jenkins.ADMINISTER)) {
return new ListBoxModel();
}</BUG>
return new StandardListBoxModel()
<BUG>.withEmptySelection()
.withAll(lookupCredentials(
StringCredentials.class,
Jenkins.getInstance(),
ACL.SYSTEM, fromUri(defaultIfBlank(apiUrl, GITHUB_URL)).build())

);</BUG>
}

if (!Jenkins.getInstance().hasPermission(Jenkins.ADMINISTER)) {
return new StandardListBoxModel().includeCurrentValue(credentialsId);
}
return new StandardListBoxModel()
.includeEmptyValue()
.includeMatchingAs(ACL.SYSTEM,
Jenkins.getInstance(),
StringCredentials.class,
fromUri(defaultIfBlank(apiUrl, GITHUB_URL)).build(),
CredentialsMatchers.always()
);
}
