0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-07 01:43:24 +02:00

fix(actions): validate workflow param to prevent 500 error (#37546)

Fix #37523
This commit is contained in:
Kalash Thakare ☯︎ 2026-05-05 21:49:52 +05:30 committed by GitHub
parent 6ba907d89c
commit ee803ad05d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1072,7 +1072,7 @@ func EnableWorkflowFile(ctx *context_module.Context) {
func disableOrEnableWorkflowFile(ctx *context_module.Context, isEnable bool) {
workflow := ctx.FormString("workflow")
if len(workflow) == 0 {
ctx.ServerError("workflow", nil)
ctx.JSONError("workflow is required")
return
}