kubero-dev / kubero-dev/kubero
Cannot add repositories from Forgejo
Open
@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
- Go to create new pipeline.
- Enable build from source.
- Pick a gitea repo.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.