Repository navigation
fix(security): nombrar el .csproj desde el directorio validado, no desde input.name - #748
Merged
Merged
Conversation
…sde input.name Última js/path-injection abierta tras #737 (análisis 19d736d): el scaffolder .NET volvía a leer `input.name` como propiedad al escribir `${projectDir}/${input.name}.csproj`. Es la misma cadena que el use case validó, pero CodeQL solo ve el sanitizador sobre la variable local, no sobre una segunda lectura de la propiedad. `path.basename(projectDir)` es exactamente ese valor (`projectDir` se construye como `${cwd}/${name}`) y ya está saneado para el motor. Test: `Billing.Api` produce `Billing.Api.csproj`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
📊 Bilingual Coverage ImpactPR Changes
Repository Coverage
✅ Good: All EN changes have ES counterparts. Generated by GitHub Actions |
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cierra la última
js/path-injectionque quedó tras #737 (análisis completo de19d736da: 8 abiertas = 7 Scorecard Token-Permissions pendientes del scan semanal + esta). El scaffolder .NET releíainput.namecomo propiedad al escribir el.csproj;path.basename(projectDir)es el mismo valor (projectDir = ${cwd}/${name}) y ya lleva el sanitizador que CodeQL reconoce. Una línea + un test.🤖 Generated with Claude Code