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
server/admin_web_test.go +1−5
| @@ -28,7 +28,7 @@ func TestRepositoryAccessSettings(t *testing.T) { | |||
| 28 | 28 | if !strings.Contains(body, `id="access"`) { | |
| 29 | 29 | t.Fatalf("settings page has no access section:\n%s", body) | |
| 30 | 30 | } | |
| 31 | for _, want := range []string{"Default role", "Approvals required", "Require a linked issue", "wilbur", "Runner"} { | ||
| 31 | for _, want := range []string{"Default role", "Approvals required", "Require a linked issue", "wilbur"} { | ||
| 32 | 32 | if !strings.Contains(body, want) { | |
| 33 | 33 | t.Fatalf("access section does not show %q:\n%s", want, body) | |
| 34 | 34 | } | |
| @@ -47,7 +47,6 @@ func TestRepositoryAccessSettings(t *testing.T) { | |||
| 47 | 47 | "protected": {"refs/heads/main\nrefs/heads/release/*"}, | |
| 48 | 48 | "role:" + f.ownerID: {"admin"}, | |
| 49 | 49 | "role:" + f.writerID: {"maintain"}, | |
| 50 | "runner:" + f.writerID: {"on"}, | ||
| 51 | 50 | } | |
| 52 | 51 | resp, _ = f.browserPost(t, "/"+f.repo+"/settings/access", cookie, form) | |
| 53 | 52 | if resp.StatusCode != 303 || resp.Header.Get("Location") != "/"+f.repo+"/settings?tab=access&saved=access#access" { | |
| @@ -83,9 +82,6 @@ func TestRepositoryAccessSettings(t *testing.T) { | |||
| 83 | 82 | if acl.Entries[f.ownerID] != "admin" || acl.Entries[f.writerID] != "maintain" { | |
| 84 | 83 | t.Fatalf("entries = %v", acl.Entries) | |
| 85 | 84 | } | |
| 86 | if got := strings.Join(acl.Runners, ","); got != f.writerID { | ||
| 87 | t.Fatalf("runners = %q, want %s", got, f.writerID) | ||
| 88 | } | ||
| 89 | 85 | entry, err := f.srv.Index.Get(f.repo) | |
| 90 | 86 | if err != nil { | |
| 91 | 87 | t.Fatal(err) | |