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.go +11−1

@@ -14,6 +14,12 @@ const (
14 14 None Role = iota
15 15 Read
16 16 Contribute
17 // Runner is the trusted automation role: it may execute this repository's
18 // code and publish the outputs a workflow declares, but it is below Maintain
19 // so it cannot move shared branches, triage, or approve. It implies Read and
20 // Contribute, which is what lets a job clone, write its contributor branch,
21 // and file the metadata a build produces.
22 Runner
17 23 Maintain
18 24 Admin
19 25 )
@@ -28,12 +34,14 @@ func Parse(s string) (Role, error) {
28 34 return Read, nil
29 35 case "contribute", "contributor", "contrib":
30 36 return Contribute, nil
37 case "runner":
38 return Runner, nil
31 39 case "maintain", "maintainer", "write":
32 40 return Maintain, nil
33 41 case "admin", "owner":
34 42 return Admin, nil
35 43 }
36 return None, fmt.Errorf("unknown role %q (want none, read, contribute, maintain or admin)", s)
44 return None, fmt.Errorf("unknown role %q (want none, read, contribute, runner, maintain or admin)", s)
37 45 }
38 46
39 47 func (r Role) String() string {
@@ -42,6 +50,8 @@ func (r Role) String() string {
42 50 return "read"
43 51 case Contribute:
44 52 return "contribute"
53 case Runner:
54 return "runner"
45 55 case Maintain:
46 56 return "maintain"
47 57 case Admin: