[Bug]: False positive alerts in AbsolutePathDetectorExperimental plugin
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the false positives with the AbsolutePathDetectorExperimental plugin using the comment examples in the issue. Locate the plugin implementation and its existing tests, then verify that comment-only lines are ignored while actual absolute paths remain detected.
Written by the indexing model from the issue text.
Description
Checked for duplicates
Yes - I've already checked
Website or Best Practice Guide?
Website
Describe the bug
When I ran the AbsolutePathDetectorExperimental plugin in the detect-secrets tool, I noticed it flagged lines of code comments as potential secrets, such as:
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LOG STASH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/// fields returned by Elasticsearch (less fields = faster UI)
These are false positives as they are comments and not absolute paths.
What did you expect?
I expected the plugin to differentiate between actual code and code comments, and not flag comments as potential secrets.
Reproducible steps
1. Install and configure the detect-secrets tool.
2. Run the AbsolutePathDetectorExperimental plugin on a codebase containing the aforementioned comment lines.
3. Observe that these comments are flagged as potential secrets.
Environment
- Version of detect-secrets tool: `https://github.com/NASA-AMMOS/slim-detect-secrets.git@exp`
- Operating System: [e.g. MacOSX]
- Dominant language
- JavaScript
- Stars
- 36
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NASA-AMMOS/slim
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
NASA-AMMOS/slim#212 ·
-
high complexity
Difficulty 5/5 Over a week Newbie friendliness 20/100
NASA-AMMOS/slim#208 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
NASA-AMMOS/slim#207 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
NASA-AMMOS/slim#205 ·
-
[New Best Practice Guide]: Versioning GuidePossibly taken @riverma claimed this 533 days ago. Openlow complexity requested software lifecycle
Difficulty 3/5 1-2 days Newbie friendliness 35/100
NASA-AMMOS/slim#198 · 1 comment ·
Similar issues
-
Flow Needs: Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
react/react-native#60447 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
erkamyaman/rust-anything#1153 ·
Maintainers usually reply within 1 day
-
Entity picker filter keeps the first kind's groups after switching Specific Term / Specific PostOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
davidofchatham/bws-gb-dynamic-tags-extensions#177 ·
Maintainers usually reply within 1 day
-
frontend good first issue kind:task level:starter size:s
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Arggon/ArggonStores#42 ·
Maintainers usually reply within 1 day
-
accessibility area: frontend area: i18n beginner-friendly bug difficulty: easy good first issue i18n keyboard priority: P3 quality user-experience
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day