Skip to content

Required Workflows #26666

Open
Open
@jimafisk

Description

@jimafisk

Feature Description

Feature Request: As a Gitea Site Administrator I'd love to be able to universally enforce an Action on all repos that users can't edit/change.

Why it's useful: Opening up CI/CD to users comes with some risk for abuse (see this example of GitLab requiring valid credit cards to avoid crypto mining on their runners). Gitea is also perfectly aligned for folks who want to run niche SaaS products that might use the same tech / workflow across repos.

Similar (but different) features seen on GitHub:

GitHub Actions have Required Workflows that allow you to specify CI/CD operations that run across multiple repositories. See more details in their blog post. My understanding is this is similar to Reusable Workflows (related blog post) but differs slightly:

Required workflows can be stored in any repository folder and are not restricted to the .github/workflows folder like normal workflows. If a required workflow calls a reusable workflow, the reusable workflow must be stored in the .github/workflows folder.

For my particular use case, I wouldn't necessarily want to define the Action in another repo, I'd rather set it in the Site Administration settings or in a separate config file.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/gitea-actionsrelated to the actions of Giteatype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions