Skip to content

Validate extra destination tags before performing push operations #2236

Closed

Description

@TanvirTian

What happened in your environment?

ORAS performed push and tagging operations before validating extra tags. As a result, invalid tags caused the command to fail after modifying the OCI layout.

What did you expect to happen?

ORAS should validate all extra tags before pushing or modifying the OCI layout. If any tag is invalid, it should return a clear error without making changes.

How can we reproduce it?

  1. Run this command :

    ./oras manifest index create --oci-layout /tmp/test-oci-extra:v1,,invalid@@tag
  2. Notice that ORAS pushes and tags the image before returning an error.

  3. Check /tmp/test-oci-extra/index.json. You should see that the image was written even though the command failed.

Image

What is the version of your ORAS CLI?

1.3.4

What is your OS environment?

CachyOS (x86_64)

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Activity

  1. added
    bug
    triage
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions