trivy
trivy copied to clipboard
feat(cli): Add available version checking
Description
Adds a background check to https://api.trivy.cloud/check to see if there is new version or any relevant notices available.
The check will be suppressed if the user uses the --no-notices or --quiet envvars or flags. The docs have been updated with the new notices flag
Example output
Although the image shows dummy versions, the api has been updated to reflect the correct information and has no announcements at this time... just the latest version (0.60.0)
Related issues
- Closes #8552
- Closes #8732
Checklist
- [X] I've read the guidelines for contributing to this repository.
- [X] I've followed the conventions in the PR title.
- [X] I've added tests that prove my fix is effective or that my feature works.
- [X] I've updated the documentation with the relevant information (if needed).
- [X] I've added usage information (if the PR introduces new options)
- [X] I've included a "before" and "after" example to the description (if the PR is a user interface change).
I think we also need to create a new page for privacy. @itaysk should know some examples from other OSS projects.
yes I already have a draft for a dedicated doc, wasn't sure if we want it in the same PR or not. actually I'll try to add it to this one. (ps i don't think the doc should include referenences from other products)
I may have some more comment after writing the doc, so don't merge it yet please
@itaysk Can we merge this PR?