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

Add a flag to list images to the zarf package inspect command #2479

Closed
Arsinic opened this issue May 6, 2024 · 0 comments · Fixed by #2478
Closed

Add a flag to list images to the zarf package inspect command #2479

Arsinic opened this issue May 6, 2024 · 0 comments · Fixed by #2478
Labels
enhancement ✨ New feature or request

Comments

@Arsinic
Copy link

Arsinic commented May 6, 2024

Is your feature request related to a problem? Please describe.

When interacting with zarf packages in a CI env, I would like to be able to easily extract the underlying containers used in the making of a given zarf package. This will be valuable for thoroughly scanning image components.

Describe the solution you'd like

  • Given I have a zarf package with a list of images that I would like to provide container scanning artifacts for
  • When I zarf package inspect <some-remote-package> --list-images
  • Then I can see the full list of images in the zarf package so that I can provide scan artifacts for each image.

Describe alternatives you've considered

Inspecting a package and piping that output to yq to filter out just the images.zarf package inspect <some-remote-package> 2>&1 | tee image_list.yaml

Additional context

Add any other context or screenshots about the feature request here.

@Arsinic Arsinic added the enhancement ✨ New feature or request label May 6, 2024
Noxsios added a commit that referenced this issue May 7, 2024
## Description

Adds `--list-images` to `zarf package inspect`. Output is a YAML style
list printed to STDOUT so it can be used with scripting.

## Related Issue

Fixes #2479

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow)
followed

---------

Signed-off-by: razzle <harry@razzle.cloud>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant