trivy icon indicating copy to clipboard operation
trivy copied to clipboard

feat(cli): Add available version checking

Open owenrumney opened this issue 8 months ago • 2 comments

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

image

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).

owenrumney avatar Mar 14 '25 11:03 owenrumney

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)

itaysk avatar Apr 18 '25 09:04 itaysk

I may have some more comment after writing the doc, so don't merge it yet please

itaysk avatar Apr 19 '25 08:04 itaysk

@itaysk Can we merge this PR?

knqyf263 avatar May 26 '25 10:05 knqyf263