Lesstep
Forgejo · Codeberg · Gitea · Actions · workflow_dispatch · Checked October 28, 2026

Forgejo and Gitea: workflow dispatch refused

Starting a workflow by hand is POST /api/v1/repos/{owner}/{repo}/actions/workflows/{file name}/dispatches with a branch or tag in ref. The server looks up the ref, then the workflow file at that ref; Gitea also checks that the file has a workflow_dispatch trigger, Forgejo that the required inputs have values. The message names the step that failed. Forgejo answers these with 400, 403, 404 or 423, Gitea with 403, 404 or 422.

Gitea

Checked in 28.2.0, the latest release, of October 18, 2026 (routers/api/v1/repo/action.go, services/actions/workflow.go):

Gitea does not refuse a missing input through the API: an input left out takes its default, or stays empty.

Forgejo

From its source (routers/api/v1/repo/action.go, services/actions/workflows.go):

When it works

Both answer 204 with no body. Forgejo answers 201 with the run (id, run_number, jobs) when the request has "return_run_info": true; Gitea answers 200 with workflow_run_id and html_url when the address ends in ?return_run_details=true.

Forgejo and Gitea Actions in IntelliJ IDEA

Pipeline Inbox for Forgejo and Gitea, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, has Run Workflow: it lists only the workflows that have workflow_dispatch at the branch or tag you pick, read from the same folders as the server, with a field for each input the file declares. When the server refuses, the dialog stays open with the message of the server. The runs, jobs and logs are free; re-running, cancelling and starting workflows are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

Forgejo, Gitea and Codeberg are names of their respective owners; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by the Forgejo project, Codeberg e.V., the Gitea project or JetBrains.

More: "No matching online runner with label" · Gitea Actions API "token is required" · Job log expired · Forgejo Actions and Gitea Actions in JetBrains IDEs · 日本語