Skip to content

Commit d089649

Browse files
committed
Change initial TrustModel to committer
The current default trustmodel for gitea is the collaborator model. This is not GitHub compatible by default. Now changing the nil default model committer would be a breaking change and could cause commits to become unverified. Therefore we should change the install default to committer so that new users have the github default model and later make a breaking change to set the default to committer. Related go-gitea#18328 Signed-off-by: Andrew Thornton <[email protected]>
1 parent 531b6d6 commit d089649

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/install/install.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,8 @@ func SubmitInstall(ctx *context.Context) {
464464
cfg.Section("log").Key("ROOT_PATH").SetValue(form.LogRootPath)
465465
cfg.Section("log").Key("ROUTER").SetValue("console")
466466

467+
cfg.Section("repository.signing").Key("DEFAULT_TRUST_MODEL").SetValue("committer")
468+
467469
cfg.Section("security").Key("INSTALL_LOCK").SetValue("true")
468470

469471
var internalToken string

0 commit comments

Comments
 (0)