Add CodeQL and dependency scanning so a malicious or vulnerable dependency is caught
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 62/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, javascript, python, typescript
- Lĩnh vực
- build-system, devops, security
Hướng nghiên cứu
Bắt đầu từ .github/workflows/ci.yml để xem cách bố trí job hiện có, sau đó thêm .github/workflows/codeql.yml bao phủ JavaScript/TypeScript và Python, và .github/dependabot.yml với npm ở thư mục gốc repo và pip trong apps/genAI. Thêm một bước pnpm audit --audit-level=high với continue-on-error đặt thành true. Hoàn thành khi CodeQL chạy trên pull request và hàng tuần, Dependabot được cấu hình cho cả hai hệ sinh thái, và các phát hiện hiện có được phân loại trong PR thay vì bị ẩn đi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 21
- Fork
- 7
- Merge trung bình
- 7 giờ 54 phút
- Pull request đã merge (30 ngày)
- 28
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TheCodeHeist-Coder/Rexial
-
Lint does not block a merge, and the same test step runs twiceCó thể đã có người làm @spikedeeev đã nhận 3 ngày trước. Đang mởBackend first issue bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
TheCodeHeist-Coder/Rexial#243 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix: validate types for login email and password (500 on non-string or missing body)Có thể làm lại được @spikedeeev đã nhận 8 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
TheCodeHeist-Coder/Rexial#235 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
There is no way to tell a live quiz is in trouble until someone complainsCó thể đã có người làm @spikedeeev đã nhận 3 ngày trước. Đang mởBackend first issue enhancement help wanted
TheCodeHeist-Coder/Rexial#245 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)Có thể làm lại được @Anshuu2004 đã nhận 30 ngày trước và không có pull request nào đang mở. Đang mởlevel3 nsoc26
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
TheCodeHeist-Coder/Rexial#215 · 6 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A host cannot see who won a quiz they already hostedCó thể đã có người làm @spikedeeev đã nhận 9 ngày trước. Đang mởenhancement good first issue help wanted level2 nsoc26 UI & UX
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
TheCodeHeist-Coder/Rexial#200 · 6 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TheCodeHeist-Coder/Rexial
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
superlinked/sie#1033 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
remix-run/react-router#15838 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ci bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melgarafael/DeskcommCRM#5290 ·
Maintainer thường phản hồi trong vòng 1 ngày