2
0

fix(vault): pass nil limits to CreateSecret in vault move
Some checks failed
Build and Release / Create Release (push) Has been skipped
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been skipped
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been skipped
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been skipped
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been skipped
Build and Release / Build Binary (linux/arm64) (push) Has been skipped
Build and Release / Lint (push) Has been cancelled
Build and Release / Integration Tests (PostgreSQL) (push) Has been cancelled
Build and Release / Unit Tests (push) Has been cancelled

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.
This commit is contained in:
2026-01-21 15:56:40 -05:00
parent 74f8c911dc
commit bb87bca3b3
2 changed files with 2 additions and 2 deletions

2
go.mod
View File

@@ -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

View File

@@ -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"))