Someone know how to get this part of a package link ? #187004
-
Select Topic AreaQuestion BodyHello there! Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
the to pull the image you would use but for what I think you are trying to do will go something like this will result in a GitHub doesn’t expose a straightforward Docker Registry API to list numeric UI IDs because that number doesn’t matter for pulling images. :D |
Beta Was this translation helpful? Give feedback.
-
|
683317892 is the GitHub package version ID for that container image. GitHub Packages assigns an internal numeric ID to each version. What it is: How to get it in a script: Example (bash + jq): TOKEN=ghp_… echo $PACKAGE_ID This returns 683317892 for tag 2025.10. Why DockerHub is different: In a workflow: If you want the page URL only, you don’t need to pull the image—just output the constructed link. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks guys it works ! |
Beta Was this translation helpful? Give feedback.
683317892 is the GitHub package version ID for that container image. GitHub Packages assigns an internal numeric ID to each version.
What it is:
It’s not a tag or digest. It’s an internal package version identifier GitHub uses in URLs for container registry UI pages.
How to get it in a script:
Use the GitHub API to list package versions and extract the ID.
Example (bash + jq):
TOKEN=ghp_…
OWNER=goauthentik
REPO=authentik
PACKAGE_ID=$(curl -s
-H "Accept: application/vnd.github+json"
-H "Authorization: Bearer $TOKEN"
https://api.github.com/orgs/$OWNER/packages/container/server/versions
| jq -r '.[] | select(.metadata.container.tags[]=="2025.10") .id')
echo $PACKAGE_ID
This returns 68331…