go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.24k stars 5.5k forks source link

Support actions and reusable workflows from private repos #32562

Open Zettat123 opened 2 days ago

Zettat123 commented 2 days ago

Resolve https://gitea.com/gitea/act_runner/issues/102

This PR allows sharing actions and workflows from private repositories.

Some related documentation from GitHub:

GitHub allows only private repositories with the same owner to access private actions/workflows, and we do the same in Gitea.

Any actions or reusable workflows stored in the private repository can be used in workflows defined in other private repositories owned by the same organization or user. Actions and reusable workflows stored in private repositories cannot be used in public repositories.

Settings for private repos: a2987a351083d7c2d0a1d4eb31f6f95

Settings for public repos: image

Zettat123 commented 2 days ago

To support this feature, act_runner also needs some improvements, which I am working on.