Skip to content

Forgejo and Gitea ​

The forgejo-actions target sets Actions secrets on a Forgejo or Gitea instance, such as Codeberg, with PUT /api/v1/repos/{owner}/{repo}/actions/secrets/{name}.

Config typeforgejo-actions
RequiresAn access token in FORGEJO_TOKEN or GITEA_TOKEN
Readable afterwardsNo

Quick start ​

toml
[targets.codeberg]
type = "forgejo-actions"
url = "https://codeberg.org"
repo = "acme/api"

[secrets]
DEPLOY_KEY = { provider = "age", value = "YWdl...", push = ["codeberg"] }
sh
FORGEJO_TOKEN=... fnox push

Configuration ​

FieldDefaultDescription
urlrequiredBase URL of the instance. Must be https, except for localhost.
repononeRepository as owner/name.
orgnoneOrganization to set the secret in. Set exactly one of repo or org.

Authentication ​

fnox reads the token from FORGEJO_TOKEN, then GITEA_TOKEN. It needs the write:repository scope for a repository secret, or write:organization for an organization secret. To keep the token in fnox too, run fnox exec -- fnox push with the token defined as a secret.

MIT LicenseCopyright © 2026jdx.dev