kubero-dev / kubero-dev/kubero

Cannot add repositories from Forgejo

Open
#686 1 comment 1 reaction 1 assignee View on GitHub

@mms-gianni is already working on this.

Since Aug 8, 2025.

bug
Dominant language
TypeScript
Stars
4.4k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

Which component(s) is affected?

Kubero UI

Describe the bug

When attempting to add a repository that is hosted on Forgejo, creation of the webook fails due to what I think is an inconsistency between Gitea and Forgejo's API. Specifically, the insecure_ssl value is undefined. Probably null coalescing to false will fix it.

Stack trace:

TypeError: Cannot read properties of undefined (reading 'insecure_ssl')
    at GiteaApi.addWebhook (/app/server/git/gitea.js:145:47)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async GiteaApi.connectRepo (/app/server/git/repo.js:109:23)
    at async /app/server/routes/repo.js:29:15
Steps to reproduce
  1. Go to create new pipeline.
  2. Enable build from source.
  3. Pick a gitea repo.
  4. Press connect.
Expected behavior

No error. Repo connects.

Screenshots

No response

Additional information

No response

Debug information

Can't run due to login issue (which is fixed in a very recent draft PR).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.