Add CodeQL and dependency scanning so a malicious or vulnerable dependency is caught
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 半天
- 新手友好度
- 62/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, javascript, python, typescript
- 领域
- build-system, devops, security
调研方向
先查看 .github/workflows/ci.yml 以了解现有的任务结构,然后添加 .github/workflows/codeql.yml,覆盖 JavaScript/TypeScript 和 Python,并添加 .github/dependabot.yml,在仓库根目录配置 npm,在 apps/genAI 配置 pip。添加一个步骤 pnpm audit --audit-level=high,并将 continue-on-error 设为 true。完成标准是:CodeQL 在拉取请求时和每周运行,Dependabot 为两个生态系统都已配置,并且现有的发现结果在 PR 中进行分类处理,而不是被抑制。
由索引模型根据 Issue 内容生成。
描述
CI checks that the code builds, type-checks, passes tests and contains no committed secrets. It does not look at the code for vulnerabilities, and it does not look at dependencies at all.
What is missing:
$ ls .github/dependabot.yml # none
$ grep -l codeql .github/workflows/ # none
$ grep -c "pnpm audit" .github/workflows/ci.yml # 0
Why it matters
This is a public repo taking pull requests from people nobody has met, and pnpm-lock.yaml is part of the diff. A PR that adds one transitive dependency is visually indistinguishable from a PR that adds one transitive dependency with a postinstall script.
Nothing currently reads dependency changes, and nothing scans the source for the patterns that usually indicate a problem — a shell call built from user input, a path joined from a request parameter, a comparison that leaks timing.
What to add
CodeQL — GitHub runs it free on public repos and it understands both JavaScript/TypeScript and Python, so it covers all five services. Add .github/workflows/codeql.yml from the starter workflow, running on pull requests and on a weekly schedule. Weekly matters: a rule added after your PR merged still finds the bug.
Dependabot — .github/dependabot.yml with an ecosystem entry for npm at the repo root and for pip in apps/genAI. Security updates and a modest weekly cadence for version updates; grouping dev dependencies into one PR keeps the noise down.
A dependency audit step in CI — pnpm audit --audit-level=high. Start it as continue-on-error: true to see the existing noise rather than blocking every PR on day one, and open a follow-up to make it a gate once it is clean.
Worth thinking about
- CodeQL will probably find things on the first run. Triage them in the PR rather than suppressing the lot — the point is to look.
pnpm auditon a monorepo this size will report transitive advisories you cannot fix directly. Being explicit about which ones are accepted, and why, is more useful than a blanket ignore.- A lockfile-diff check — flagging a PR that changes
pnpm-lock.yamlwithout changing anypackage.json— would catch the specific case above. Nice to have rather than essential.
Definition of done
- CodeQL runs on every pull request and weekly
- Dependabot opens security updates for npm and pip
- CI reports high-severity dependency advisories
- Existing findings are triaged, not suppressed wholesale
Good backend issue. Mostly configuration rather than code, but the triage at the end is where the real work is — and it is a genuinely useful thing to have done.
- 主要语言
- TypeScript
- 星标
- 21
- 派生
- 7
- 平均合并
- 7 小时 54 分钟
- 30 天内合并 PR
- 28
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TheCodeHeist-Coder/Rexial 的其他 Issue
-
Lint does not block a merge, and the same test step runs twice可能已有人在做 @spikedeeev 于 3 天前认领。 未关闭Backend first issue bug good first issue help wanted
难度 2/5 1-3 小时 新手友好度 82/100
TheCodeHeist-Coder/Rexial#243 · 1 条评论 ·
维护者通常 1 天内回复
-
fix: validate types for login email and password (500 on non-string or missing body)可能重新可做 @spikedeeev 于 8 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
TheCodeHeist-Coder/Rexial#235 · 2 条评论 ·
维护者通常 1 天内回复
-
There is no way to tell a live quiz is in trouble until someone complains可能已有人在做 @spikedeeev 于 3 天前认领。 未关闭Backend first issue enhancement help wanted
TheCodeHeist-Coder/Rexial#245 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)可能重新可做 @Anshuu2004 于 30 天前认领,目前没有进行中的 PR。 未关闭level3 nsoc26
难度 4/5 3-5 天 新手友好度 35/100
TheCodeHeist-Coder/Rexial#215 · 6 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
A host cannot see who won a quiz they already hosted可能已有人在做 @spikedeeev 于 9 天前认领。 未关闭enhancement good first issue help wanted level2 nsoc26 UI & UX
难度 4/5 3-5 天 新手友好度 58/100
TheCodeHeist-Coder/Rexial#200 · 6 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 TheCodeHeist-Coder/Rexial 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
superlinked/sie#1033 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
remix-run/react-router#15838 ·
维护者通常 1 天内回复
-
area/ci bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
melgarafael/DeskcommCRM#5290 ·
维护者通常 1 天内回复