Add CodeQL and dependency scanning so a malicious or vulnerable dependency is caught
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 62/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions, javascript, python, typescript
- Bereich
- build-system, devops, security
Rechercherichtung
Beginne mit .github/workflows/ci.yml, um das bestehende Job-Layout zu sehen, und füge dann .github/workflows/codeql.yml hinzu, das JavaScript/TypeScript und Python abdeckt, sowie .github/dependabot.yml mit npm im Repo-Root und pip in apps/genAI. Füge einen Schritt pnpm audit --audit-level=high mit continue-on-error auf true hinzu. Fertig ist es, wenn CodeQL bei Pull Requests und wöchentlich läuft, Dependabot für beide Ökosysteme konfiguriert ist und die vorhandenen Befunde im PR bewertet statt unterdrückt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 21
- Forks
- 7
- Ø Merge
- 7 Std. 54 Min.
- Gemergte PRs (30 T.)
- 28
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TheCodeHeist-Coder/Rexial
-
Lint does not block a merge, and the same test step runs twiceEvtl. vergeben @spikedeeev hat das vor 3 Tagen übernommen. OffenBackend first issue bug good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TheCodeHeist-Coder/Rexial#243 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
fix: validate types for login email and password (500 on non-string or missing body)Evtl. wieder frei @spikedeeev hat das vor 8 Tagen übernommen, und es ist kein Pull Request offen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TheCodeHeist-Coder/Rexial#235 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
There is no way to tell a live quiz is in trouble until someone complainsEvtl. vergeben @spikedeeev hat das vor 3 Tagen übernommen. OffenBackend first issue enhancement help wanted
TheCodeHeist-Coder/Rexial#245 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)Evtl. wieder frei @Anshuu2004 hat das vor 30 Tagen übernommen, und es ist kein Pull Request offen. Offenlevel3 nsoc26
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
TheCodeHeist-Coder/Rexial#215 · 6 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
A host cannot see who won a quiz they already hostedEvtl. vergeben @spikedeeev hat das vor 9 Tagen übernommen. Offenenhancement good first issue help wanted level2 nsoc26 UI & UX
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
TheCodeHeist-Coder/Rexial#200 · 6 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TheCodeHeist-Coder/Rexial
Ähnliche Issues
-
area/ci bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
melgarafael/DeskcommCRM#5290 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add Alice&BotOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
easy enhancement good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag