trivy icon indicating copy to clipboard operation
trivy copied to clipboard

fix(secret): use only line with secret for long secret lines

Open DmitriyLewen opened this issue 1 year ago • 0 comments

Description

For long secret lines use only the line with the secret

before:

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 j.txt:3
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   asd
   2   aaaa
   3 [ asd
aaaa
jwt: ***********************************************************************************************************************************************************

asda
   4   
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────


after:

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 j.txt:3
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   asd
   2   aaaa
   3 [ jwt: ***********************************************************************************************************************************************************
   4   
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────


Related issues

  • Close #7411

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.
  • [ ] I've updated the documentation with the relevant information (if needed).
  • [ ] 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).

DmitriyLewen avatar Aug 28 '24 03:08 DmitriyLewen