Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: Fetch multi-platform image digests #89

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

sondrelg
Copy link
Member

@sondrelg sondrelg commented Jul 8, 2024

Work in progress.

Fetches image digests for the user, possibly making the ingore-shas input redundant. I thought we wouldn' be able to do this, but this seems to work:

curl -H "X-GitHub-Api-Version: 2022-11-28" \
     -H "Accept: application/vnd.oci.image.index.v1+json" \
     -H "Authorization: Bearer <base64-encoded token>" \
     https://ghcr.io/v2/snok%2Fcontainer-retention-policy/manifests/v3.0.0

Docs available at https://github.com/distribution/distribution/blob/main/docs/content/spec/api.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant