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

Grype|Include Timestamp and Image Name to Reports #1170

Closed
mike-19 opened this issue Mar 10, 2023 · 4 comments · Fixed by #1249
Closed

Grype|Include Timestamp and Image Name to Reports #1170

mike-19 opened this issue Mar 10, 2023 · 4 comments · Fixed by #1249
Labels
enhancement New feature or request

Comments

@mike-19
Copy link

mike-19 commented Mar 10, 2023

What would you like to be added:

Include data like the timestamp on when grype scan was run and also the image name to the report information.

Why is this needed:
This is required to provide structural data for visualization as well evidence for the scan report is associated with the particular image and was executed on a particular date (sort it to the latest) - Evidence needs to be provided for perusals

@mike-19 mike-19 added the enhancement New feature or request label Mar 10, 2023
@spiffcs
Copy link
Contributor

spiffcs commented Mar 10, 2023

👋 Thanks for the issue @mike-19 - when you run grype -o json <IMAGE> I think you can see the image name under source.target.userInput

If the user input is something different then source.target.tags might also give you what you need for the image report.

As for timestamp I think that's an easy add.

Are there other formats you're looking for this update in? Were you specifically referencing a report/format type when filing the issue?

@mike-19
Copy link
Author

mike-19 commented Mar 13, 2023

@spiffcs Thanks for the follow-up; based on your comments, I went through the JSON, and I was able to get the image name
timestamp of when the scan was run with timezone would be helpful
I am not looking for any other formats

jneate added a commit to jneate/grype that referenced this issue Apr 21, 2023
jneate added a commit to jneate/grype that referenced this issue Apr 21, 2023
Signed-off-by: James Neate <jamesmneate@gmail.com>
kzantow pushed a commit that referenced this issue Apr 21, 2023
Signed-off-by: James Neate <jamesmneate@gmail.com>
@shanedell
Copy link
Contributor

Should this be closed? Looked like it was added in 04c0bc1

@kzantow kzantow linked a pull request Apr 21, 2023 that will close this issue
@kzantow
Copy link
Contributor

kzantow commented Apr 21, 2023

@shanedell good catch -- looks like this was completed with #1249

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
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants