mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Allow to set custom trusted clone plugins (#4352)
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com> Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -94,7 +94,6 @@ func PostRepo(c *gin.Context) {
|
||||
repo.RequireApproval = model.RequireApprovalForks
|
||||
repo.AllowPull = true
|
||||
repo.AllowDeploy = false
|
||||
repo.NetrcOnlyTrusted = true
|
||||
repo.CancelPreviousPipelineEvents = server.Config.Pipeline.DefaultCancelPreviousPipelineEvents
|
||||
}
|
||||
repo.IsActive = true
|
||||
@@ -275,8 +274,8 @@ func PatchRepo(c *gin.Context) {
|
||||
if in.CancelPreviousPipelineEvents != nil {
|
||||
repo.CancelPreviousPipelineEvents = *in.CancelPreviousPipelineEvents
|
||||
}
|
||||
if in.NetrcOnlyTrusted != nil {
|
||||
repo.NetrcOnlyTrusted = *in.NetrcOnlyTrusted
|
||||
if in.NetrcTrusted != nil {
|
||||
repo.NetrcTrustedPlugins = *in.NetrcTrusted
|
||||
}
|
||||
if in.Visibility != nil {
|
||||
switch *in.Visibility {
|
||||
|
||||
Reference in New Issue
Block a user