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

getCollectionRef() to centralize validating Collection identifier #303

Merged
merged 3 commits into from
Nov 29, 2022

Conversation

joshspicer
Copy link
Member

@joshspicer joshspicer commented Nov 29, 2022

A continuation of #293 and will close devcontainers/action#103.

This change now generates the OCICollectionRef object in a centralized function, just like OCIRef. It also uses the same regex that OCIRef uses for validation to validate the path is spec compliant.

Fixes the 404 seen in this action run when pushing the metadata collection artifact to registry (note the Capital Letters in the repo name). Crucially, the identifier is now fully downcased, like done in #293.

Unit tests added to prevent regressions.


Successful run of the publish command:

image

@joshspicer joshspicer requested a review from a team as a code owner November 29, 2022 00:29
Copy link
Member

@samruddhikhandale samruddhikhandale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✨

@joshspicer joshspicer merged commit d5bc1f2 into main Nov 29, 2022
@joshspicer joshspicer deleted the joshspicer/collection-validate-identifier branch November 29, 2022 17:26
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.

Issues when publishing images on GHCR due to uppercase letters
3 participants