Skip to content

Ask: support Forgejo in tkn pac create repo and webhook add #2755

@SecKatie

Description

@SecKatie

Would the project be open to a PR adding Forgejo support to tkn pac create repo and tkn pac webhook add?

The CLI webhook setup path currently only supports GitHub, GitLab, and Bitbucket Cloud. The Forgejo docs also say these CLI flows are not supported today.

Proposed scope:

  • Add forgejo to CLI webhook provider selection.
  • Use the existing vendored Forgejo SDK to create repository webhooks.
  • Configure the Forgejo events PAC already handles: push, pull_request, and issue_comment.
  • Reuse the existing Repository CR / Secret update flow used by other webhook providers.
  • Update Forgejo docs for CLI setup.

One token caveat: Forgejo webhook creation requires repository-admin capability. Tokens limited to "Specific repositories" or "Public only" can fail even with write:repository, so the CLI/docs should ask for repository access All plus write:repository and write:issue if using the cli.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions