From bb87bca3b31115a8b5b9354636970132016cad33 Mon Sep 17 00:00:00 2001 From: logikonline Date: Wed, 21 Jan 2026 15:56:40 -0500 Subject: [PATCH] fix(vault): pass nil limits to CreateSecret in vault move Update CreateSecret call in vault move handler to pass nil limits parameter, matching the updated service signature. Also bump gitcaddy-vault to v1.0.45. --- go.mod | 2 +- routers/web/repo/vault_move.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index ab05f6c61f..5bff960377 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( connectrpc.com/connect v1.18.1 // GitCaddy Vault plugin (compiled-in) - git.marketally.com/gitcaddy/gitcaddy-vault v1.0.44 + git.marketally.com/gitcaddy/gitcaddy-vault v1.0.45 gitea.com/go-chi/binding v0.0.0-20240430071103-39a851e106ed gitea.com/go-chi/cache v0.2.1 gitea.com/go-chi/captcha v0.0.0-20240315150714-fb487f629098 diff --git a/routers/web/repo/vault_move.go b/routers/web/repo/vault_move.go index 7f04922166..f009da3a01 100644 --- a/routers/web/repo/vault_move.go +++ b/routers/web/repo/vault_move.go @@ -122,7 +122,7 @@ func MoveToVaultPost(ctx *context.Context) { Type: "file", Description: "Moved from repo: " + treePath, CreatorID: ctx.Doer.ID, - }) + }, nil) if err != nil { log.Error("Failed to create vault secret: %v", err) ctx.Flash.Error(ctx.Tr("repo.editor.move_to_vault_failed"))