Gitlab secrets scan

As per the GitLab documentation Secret Detection | GitLab i am trying ignore using the comment #gitleaks:allow but still the scan complains about this. The example mentioned in the document itself is not working.

“A personal token for GitLab will look like glpat-JUST20LETTERSANDNUMB” #gitleaks:allow

appreciate any suggestions. thanks.