Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Replace the runner allowlist with a runner role

648cd81bde97042f682a528ebb9ce6353b95bf3f · Keenan Nemetz · 1d ago · parent ea92d754

core/role/role_test.go +3−1

@@ -11,6 +11,7 @@ func TestParseAndOrder(t *testing.T) {
11 11 "contrib": Contribute,
12 12 "contributor": Contribute,
13 13 "contribute": Contribute,
14 "runner": Runner,
14 15 "write": Maintain,
15 16 "maintainer": Maintain,
16 17 "maintain": Maintain,
@@ -25,7 +26,8 @@ func TestParseAndOrder(t *testing.T) {
25 26 if _, err := Parse("wizard"); err == nil {
26 27 t.Fatal("Parse accepted an unknown role")
27 28 }
28 if !Admin.AtLeast(Maintain) || Contribute.AtLeast(Maintain) || !Maintain.AtLeast(Maintain) {
29 if !Admin.AtLeast(Maintain) || !Maintain.AtLeast(Runner) || !Runner.AtLeast(Contribute) ||
30 Contribute.AtLeast(Runner) || !Maintain.AtLeast(Maintain) {
29 31 t.Fatal("role ordering is not minimum-role ordering")
30 32 }
31 33 }