Secret detection_ignore single line secret in source code

Hello all,
I am a newbie here and I am using Gitlab as CICD tool in our organisation. I am having trouble while implementing secret-detection job from gitlab template.

  1. I would like to ignore a single line secret from my code. How can I do it?
  2. Since “GitLab secrets analyzer” is by default outputs the report as json file, It is very difficult to view the json format directly from artifacts browse URL, so what is the solution to view it ? Can I have this report in html/sarif format ?

Please help me on this regard. Thanks in advance!

Best regards,