REST API endpoint needed for managing package repository/Actions access #188574
Unanswered
danielgerlag
asked this question in
Packages
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
There is no REST API or GraphQL mutation to programmatically manage the "Manage Actions access" setting on GitHub Container Registry (GHCR) packages. This setting allows granting specific repositories access to a package for use in GitHub Actions workflows.
Problem
When an organization has many container packages (e.g., 20+), granting a repository Actions access to each package requires clicking through the web UI one-by-one — navigating to each package's settings page, clicking "Add Repository", searching, and confirming. This is extremely tedious and error-prone.
The GitHub REST API documents endpoints for listing, getting, deleting, and restoring packages (
/orgs/{org}/packages/container/{name}), but there is no endpoint to:Expected Behavior
A REST API endpoint such as:
This would allow automation of package access management, which is essential for organizations with many packages and repositories.
Use Case
Our organization has 100+ container packages on GHCR. We needed to grant a single repository Actions access to ~21 packages matching
source/*,reaction/*, andbootstrap/*. This required manually clicking through 21 package settings pages in the web UI because no API exists to automate this.Impact
Please consider adding REST API endpoints for managing package repository/Actions access. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions