fix(hooks): security guard false positives in test fixtures and on non-shell exec(
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 70/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, nodejs
- 领域
- devtools, security, testing-qa
调研方向
Start by locating the credential rules, shell-exec rule, and their tests in the repository; the issue does not name specific files. Check how each rule identifies test paths and child_process calls, then run the relevant tests. Done means fixture paths suppress unknown credential-like values while known key formats still warn, and shell-exec warnings require the stated child_process evidence, with tests covering false and true positives.
由索引模型根据 Issue 内容生成。
描述
What
The guard warns on credential-looking values in test fixtures and on any exec( call with a template string, including RegExp.prototype.exec and ORM exec helpers.
Why
Warnings that are wrong teach people to ignore the hook or turn it off.
Acceptance criteria
- Credential rules are quieter in test paths (
*.test.*,*.spec.*,__tests__/,tests/,*Tests.cs) unless the value matches a known key format. - The shell-exec rule needs evidence the call is
child_process(an import orrequireof it in the file, orcp.exec/child_process.exec). - Tests cover both the old false positives and the true positives they must keep.
- 主要语言
- JavaScript
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
devmaxxx/stackwise 的其他 Issue
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 68/100
-
enhancement
难度 3/5 1-2 天 新手友好度 55/100
-
enhancement
难度 3/5 1-2 天 新手友好度 68/100
-
bug eval
难度 3/5 1-2 天 新手友好度 66/100
-
bug
难度 3/5 1-2 天 新手友好度 55/100
查看 devmaxxx/stackwise 的全部 Issue
相似的 Issue
-
verified
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
check:passed logos:add
难度 1/5 1 小时以内 新手友好度 68/100
维护者通常 6 天内回复