-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Line in Yaml for false positive #632
Comments
For one of my yaml files, |
Got same behaviour -- line 220 out of 148. I think it's incorrect parser behaviour -- it count lines after references ( |
Hi @oerp-odoo. Thank you for report this. Can you please let me know what commands you are running. I tried to reproduce this on my machine and this is my output. Is it reproducible if you just use those lines in a new file? Ignoring the remainder of the file? I am trying to gauge if there is a parsing issue later in the file that I cannot see. Fiile
Scan:
Hook:
|
Hi @jpdakran - repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
hooks:
- id: detect-secrets
args:
- --baseline=.secrets.baseline It happened when I initially added new yml file. |
@oerp-odoo Understood. I just verified that there is an issue with anchor (&), aliases (*) and overrides <<. Can you verify that your file has these attributes? |
@jpdakran yes, it does use that. As you can see in my original post, I have |
My yaml file starts with this content:
detect-secrets throws:
Saying potential secret is on line 11, but its actually on line 8. I found similar issue here: #503
P.S. Using
v1.4.0
.The text was updated successfully, but these errors were encountered: