Generic package owner as {user}/{repo} #14304

Closed
opened 2025-11-02 11:09:20 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @xiaozhuai on GitHub (Mar 26, 2025).

Feature Description

I have a repo located under an organization.
I want to publish a Generic package to this repository,
but I don't want members in this organization who do not have this repository permission to see this package.

I tried setting owner to {user}/{repo}, but when PUT with curl, it returned a 404.
I also tried to associate the package with the repo, but this way, all organization members can see and download the package.

What should I do to limit the package to be accessed only by member with the repo permissions?

Screenshots

No response

Originally created by @xiaozhuai on GitHub (Mar 26, 2025). ### Feature Description I have a repo located under an organization. I want to publish a Generic package to this repository, but I don't want members in this organization who do not have this repository permission to see this package. I tried setting owner to {user}/{repo}, but when PUT with curl, it returned a 404. I also tried to associate the package with the repo, but this way, all organization members can see and download the package. What should I do to limit the package to be accessed only by member with the repo permissions? ### Screenshots _No response_
GiteaMirror added the topic/packagestype/proposalissue/duplicate labels 2025-11-02 11:09:20 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Apr 3, 2025):

That's currently not possible because package permissions are taken from the owner not a possible linked repository. There is already an issue for more fine granular package permissions.

@KN4CK3R commented on GitHub (Apr 3, 2025): That's currently not possible because package permissions are taken from the owner not a possible linked repository. There is already an issue for more fine granular package permissions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14304