Closed ranqn closed 2 years ago
Thanks for reporting.
It appears values with spaces aren't read from the verdaccio config correctly, even when quoted with single or double quotes. This seems to be a bug in Verdaccio or one of the libraries it uses.
We can still support team names with spaces by using the team slug instead of the raw team name. They should be the same in most cases, except the slug uses dashes instead of spaces. The switch to using the team slug is implemented in https://github.com/n4bb12/verdaccio-github-oauth-ui/releases/tag/3.2.8
In your case, this means you need to use: github/owner/MyOrg/team/Package-Publisher
Bug Report
Versions
Environment
Observed behavior
Can't assign package access to a GitHub team with whitespace in its name.
Expected behavior
Package access config should work with team with whitespace in its name.
Steps to reproduce
Package Publisher
in organizationMyOrg
for example.publish: 'github/owner/MyOrg/team/Package Publisher'
, then restart verdaccio server.real_groups
Package Publisher
.PackagePublisher
on GitHub.publish: 'github/owner/MyOrg/team/PackagePublisher'
and restart server.