Skip to content

Conversation

malice00
Copy link
Collaborator

The update to the GH action 'oras-project/setup-oras' brought with it v1.3.0 of oras. This version gives a different output for oras discover compared to the previous version(s).

The question is, if this output it correct, because the official documentation still shows the old output!

Old:

oras discover --format json --platform linux/amd64 ghcr.io/cyclonedx/opensuse-lang@sha256:84b639892598fb3c92e4511e9d0ecf348b9ece28bef3f40ca25fc0d002867be6 
{
  "manifests": [
    {
      "reference": "ghcr.io/cyclonedx/opensuse-lang@sha256:21868b1158e16efc9fbafce612f4fa610917b47767bb0f814ba717f06ce96c88",
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:21868b1158e16efc9fbafce612f4fa610917b47767bb0f814ba717f06ce96c88",
      "size": 777,
      "annotations": {
        "org.opencontainers.image.created": "2025-09-10T18:40:31Z"
      },
      "artifactType": "sbom/cyclonedx"
    }
  ]
}

New:

oras discover --format json --platform linux/amd64 ghcr.io/cyclonedx/opensuse-lang@sha256:84b639892598fb3c92e4511e9d0ecf348b9ece28bef3f40ca25fc0d002867be6  
{
  "reference": "ghcr.io/cyclonedx/opensuse-lang@sha256:84b639892598fb3c92e4511e9d0ecf348b9ece28bef3f40ca25fc0d002867be6",
  "mediaType": "application/vnd.oci.image.manifest.v1+json",
  "digest": "sha256:84b639892598fb3c92e4511e9d0ecf348b9ece28bef3f40ca25fc0d002867be6",
  "size": 678,
  "referrers": [
    {
      "reference": "ghcr.io/cyclonedx/opensuse-lang@sha256:21868b1158e16efc9fbafce612f4fa610917b47767bb0f814ba717f06ce96c88",
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:21868b1158e16efc9fbafce612f4fa610917b47767bb0f814ba717f06ce96c88",
      "size": 777,
      "annotations": {
        "org.opencontainers.image.created": "2025-09-10T18:40:31Z"
      },
      "artifactType": "sbom/cyclonedx",
      "referrers": []
    }
  ]
}

@malice00 malice00 requested a review from prabhu as a code owner September 10, 2025 20:15
@malice00 malice00 added the bug Something isn't working label Sep 10, 2025
Copy link
Collaborator

@prabhu prabhu left a comment

Choose a reason for hiding this comment

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

Great find!

@prabhu
Copy link
Collaborator

prabhu commented Sep 10, 2025

Feels like a bug to me. Shall we report to the oras-go project?

@malice00
Copy link
Collaborator Author

Didn't get around to it yet, was in the zone with coding/configuring. But will do it in a bit. And if it is correct, they should update the documentation -- there's an issue here, one way or another!

@malice00
Copy link
Collaborator Author

malice00 commented Sep 10, 2025

Issue filed

@malice00 malice00 merged commit 2c65267 into master Sep 10, 2025
81 checks passed
@malice00 malice00 deleted the fix/oras branch September 10, 2025 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants