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

Failure scanning images with arch variant (e.g. arm/v7) #831

Closed
mattmoor opened this issue Jul 16, 2022 · 3 comments
Closed

Failure scanning images with arch variant (e.g. arm/v7) #831

mattmoor opened this issue Jul 16, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@mattmoor
Copy link

What happened:

grype output...
  Executing: grype -o sarif --fail-on low ghcr.io/mattmoor/static@sha256:b7dcd21f108cfed6c394aa18240a26c02f904337a962ca0ffe17368de5c65a23
  1 error occurred:
  	* failed to catalog: could not fetch image "ghcr.io/mattmoor/static@sha256:b7dcd21f108cfed6c394aa18240a26c02f904337a962ca0ffe17368de5c65a23": could not read image: unable to override metadata option: unknown architecture: arm/v7

What you expected to happen:

Successful scan

How to reproduce it (as minimally and precisely as possible):

We are running this via the action:

    - name: Scan image with Anchore/Grype
      id: grype-scan
      uses: anchore/scan-action@ecfd0e98932e57ea8f68f29c4f418fc41a8194db
      with:
        image: ghcr.io/mattmoor/static@sha256:b7dcd21f108cfed6c394aa18240a26c02f904337a962ca0ffe17368de5c65a23
        fail-build: false
        severity-cutoff: low

The image digest above should be public, so I've inlined it (instead of ${{ inputs.blah }}).

Anything else we need to know?:

Environment:

  • Output of grype version: see the commit on the action, which should be fairly recent.
  • OS (e.g: cat /etc/os-release or similar): The actions use ubuntu, but this is scanning arm images w/ variant.
@luhring
Copy link
Contributor

luhring commented Sep 29, 2022

I think the underlying problem here is in Stereoscope — filed a bug report: anchore/stereoscope#143

@luhring
Copy link
Contributor

luhring commented Sep 29, 2022

This issue may be able to be closed now, with the change made to apko in chainguard-dev/apko#364. There still may be an issue in stereoscope — I think it's worth confirming why "" is always used for the Variant for the Docker Daemon source (this may be correct but I don't understand why yet).

But my guess is Grype won't error out on images produced by images produced by apko going forward!

@tgerla
Copy link
Contributor

tgerla commented Dec 15, 2022

Thanks for the update and sorry for the delay! I'll close this issue but feel free to re-open or open a new one if needed.

@tgerla tgerla closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2022
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
Archived in project
Development

No branches or pull requests

3 participants