# Linking packages to repos in other orgs

**URL:** <https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653>\
**Category:** General\
**Created:** [August 4, 2022, 6:07pm UTC](https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653 "2022-08-04T18:07:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![germgerm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/germgerm/32/2905_2.png) [@germgerm](https://forum.gitea.com/u/germgerm)\
**Post date:** [August 4, 2022, 6:07pm UTC](https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653/1 "2022-08-04T18:07:18Z")

</div>

When publishing a nuget package to my user account where the associated repo is in an organization owned by my account, I am only able to link the package to a repo owned directly by my account and not to a repo in an organization owned by my account.  
Is there a way to link packages to repos in my organizations not just in my account ?  
If not then I guess we can forget about linking packages to repos as that would require one big flat repo space instead of our current ‘_hierarchy_’ using orgs.  
The idea is that we want to have one single nuget source that is fed by multiple repos in different organizations ( and possibly owned by different users )

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [August 5, 2022, 8:16am UTC](https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653/2 "2022-08-05T08:16:46Z")

</div>

I think you mean a global nuget package. It’s a new feature and there is already an issue.

---

<div class="post-metadata">

**Author:** ![germgerm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/germgerm/32/2905_2.png) [@germgerm](https://forum.gitea.com/u/germgerm)\
**Post date:** [August 5, 2022, 3:25pm UTC](https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653/3 "2022-08-05T15:25:58Z")

</div>

Thanks - I looked around but can’t find anything regarding global packages on github or here on discourse or through google search.  
Do you have a link to any documentation/discussion on global packages ?

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [September 9, 2022, 8:40am UTC](https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653/4 "2022-09-09T08:40:56Z")

</div>

A package must belong to a user or an organization.

---

<div class="post-metadata">

**Author:** ![germgerm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/germgerm/32/2905_2.png) [@germgerm](https://forum.gitea.com/u/germgerm)\
**Post date:** [September 10, 2022, 1:34am UTC](https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653/5 "2022-09-10T01:34:43Z")

</div>

ok - but what about the global packages (registries ?) you referred to ? Can you provide a link to the issue mentioned ?

---

<div class="post-metadata">

**Author:** ![germgerm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/germgerm/32/2905_2.png) [@germgerm](https://forum.gitea.com/u/germgerm)\
**Post date:** [December 10, 2022, 12:10pm UTC](https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653/6 "2022-12-10T12:10:59Z")

</div>

Looking at this again - I still haven’t found anything about global packages related to gitea  
The problem is that packages in a registry can only be linked to repos directly owned by the registry user or organization  
I would like to setup a registry within an organization for ALL packages and have the ability to then link those packages to the source repos which would be owned by other organizations and/or users  
As it stands now, separate registries are required for every unique user / organization which is just not a useful situation

---

<div class="post-metadata">

**Author:** ![jwalzer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/jwalzer/32/4128_2.png) [@jwalzer](https://forum.gitea.com/u/jwalzer)\
**Post date:** [November 13, 2023, 12:57pm UTC](https://forum.gitea.com/t/linking-packages-to-repos-in-other-orgs/5653/7 "2023-11-13T12:57:10Z")

</div>

Adding my cry for that feature here, too …

I also have the issue, that I want to link a package to a repo owned by a different user.

I have setup different organizations, which are public and hence the packages are accessable anonymously.  
My users have their repos as private, but are pushing to the public organizations packages via access-tokens.

Hence the workflows and the sources are private to the users, but the created artifacts are stored publicly available.

But I would like to link from the packages in the public organization to the repositories of the private users space.

I hope to reopen the discussion here and maybe even get a link to the ticket talked above?
