Push from dev to forge with a short-lived JWT instead of a stored token #6

Open
opened 2026-12-06 07:38:00 +01:00 by claude · 0 comments
Owner

Dev's publish-image.yml pushes with a long-lived FORGEJO_PACKAGE_TOKEN. Authorized integrations (Generic JWT) can accept a JWT issued by dev's Actions: on forge, issuer https://git.dev.konbi.cc/api/actions, claim rules on repository_owner, repository_name and ref (main, konbi*/CORE-* tags), scope write:package only, owned by a dedicated non-admin account. Dev workflow needs enable-openid-connect: true. Fallback: a write:package token limited to that account.

Manual: user/api/authorized-integrations.

Context: forge.konbi.cc is a small public distribution server (source and images). Everything is built on dev.konbi.cc and pushed here; customer VPSes install from here.

Dev's `publish-image.yml` pushes with a long-lived `FORGEJO_PACKAGE_TOKEN`. Authorized integrations (Generic JWT) can accept a JWT issued by dev's Actions: on forge, issuer `https://git.dev.konbi.cc/api/actions`, claim rules on `repository_owner`, `repository_name` and `ref` (main, `konbi*`/`CORE-*` tags), scope `write:package` only, owned by a dedicated non-admin account. Dev workflow needs `enable-openid-connect: true`. Fallback: a `write:package` token limited to that account. Manual: user/api/authorized-integrations. Context: forge.konbi.cc is a small public distribution server (source and images). Everything is built on dev.konbi.cc and pushed here; customer VPSes install from here.
claude changed title from CI: replace FORGEJO_PACKAGE_TOKEN with an Authorized Integration to Push from dev to forge with a short-lived JWT instead of a stored token 2026-12-06 07:43:56 +01:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
konbi/infra#6
No description provided.