Add CodeQL and dependency scanning so a malicious or vulnerable dependency is caught
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, javascript, python, typescript
- Área
- build-system, devops, security
Línea de trabajo
Empieza con .github/workflows/ci.yml para ver la disposición actual de los jobs y luego añade .github/workflows/codeql.yml, que cubra JavaScript/TypeScript y Python, y .github/dependabot.yml con npm en la raíz del repositorio y pip en apps/genAI. Añade un paso pnpm audit --audit-level=high con continue-on-error establecido en true. Está terminado cuando CodeQL se ejecuta en los pull requests y semanalmente, Dependabot está configurado para ambos ecosistemas y los hallazgos existentes se clasifican en el PR en lugar de suprimirse.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 21
- Forks
- 7
- Merge medio
- 7 h 54 min
- PR fusionados (30 d)
- 28
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TheCodeHeist-Coder/Rexial
-
Lint does not block a merge, and the same test step runs twicePosiblemente ocupada @spikedeeev la tomó hace 3 días. AbiertoBackend first issue bug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TheCodeHeist-Coder/Rexial#243 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
fix: validate types for login email and password (500 on non-string or missing body)Quizá libre de nuevo @spikedeeev la tomó hace 8 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TheCodeHeist-Coder/Rexial#235 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
There is no way to tell a live quiz is in trouble until someone complainsPosiblemente ocupada @spikedeeev la tomó hace 3 días. AbiertoBackend first issue enhancement help wanted
TheCodeHeist-Coder/Rexial#245 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Critical security: a couple of access control problems in the API and ws-server (details to be shared privately)Quizá libre de nuevo @Anshuu2004 la tomó hace 30 días y no hay ningún pull request abierto. Abiertolevel3 nsoc26
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
TheCodeHeist-Coder/Rexial#215 · 6 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
A host cannot see who won a quiz they already hostedPosiblemente ocupada @spikedeeev la tomó hace 9 días. Abiertoenhancement good first issue help wanted level2 nsoc26 UI & UX
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
TheCodeHeist-Coder/Rexial#200 · 6 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de TheCodeHeist-Coder/Rexial
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
superlinked/sie#1033 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
remix-run/react-router#15838 ·
Los mantenedores suelen responder en 1 día
-
area/ci bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
melgarafael/DeskcommCRM#5290 ·
Los mantenedores suelen responder en 1 día