[False Positive] Do not target .NET Framework versions less than 4.7.2. seems to flag .NET11 projects

未关闭 适合新手
#801 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp
领域
security, tooling

调研方向

Issue 指出了 rules/default/security/frameworks/dotnet_framework.json 和 DS450000 规则。阅读规则的匹配模式,并比较它在 net11.0 与所列较旧 target framework 版本上的行为。完成标准是 .NET 11 不再触发该规则,同时目标中的较旧版本仍然匹配;issue 未指定测试文件。

由索引模型根据 Issue 内容生成。

描述

false positive

Rule ID

DS450000

What the rule matched

<TargetFramework>net11.0</TargetFramework>

Why should this not be matched?

This is .NET 11 not .NET 1.1

I believe the Regex in https://github.com/microsoft/DevSkim/blob/main/rules/default/security/frameworks/dotnet_framework.json is taking a partial string and should be something like
^(net11|net20|net35|net40|net403|net45|net451|net452|net46|net461|net462|net47|net471)$

主要语言
C#
星标
1k
派生
135
平均合并
15 小时 14 分钟
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/DevSkim 的其他 Issue

查看 microsoft/DevSkim 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。