Skip to content

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.

2 participants