darnit audit silently resolves upstream and never prints the audited repo
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- cli, github, python
- Área
- cli, developer-experience
Línea de trabajo
Empieza por packages/darnit/src/darnit/core/utils.py, especialmente por detect_repo_from_git y detect_owner_repo; después, busca cmd_audit y su registro de auditoría actual. Conserva la fuente remota detectada al resolver el repositorio e incluye el owner/repo resuelto y la fuente en la salida de auditoría. Ejecuta las pruebas pertinentes de la CLI de auditoría; el trabajo está terminado cuando los usuarios puedan ver qué repositorio y qué remoto se auditaron.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
darnit audit <path> auto-detects owner/repo preferring the upstream remote, and never prints which owner/repo it resolved. On a fork checkout (both origin and upstream present), the live checks target upstream — potentially a different repo than the one the user is working in — with no indication in the output.
Steps to Reproduce
- Clone a fork so the checkout has both
origin(your fork) andupstreamremotes. - Run
darnit audit <path>with authenticatedgh. - Inspect which
owner/repothe livegh apichecks target.
Expected Behavior
The audit output states the resolved owner/repo and which remote it came from, so it's obvious which repository was audited.
Actual Behavior
The checks target upstream silently; the CLI logs only Auditing {path} with {N} controls. Details:
packages/darnit/src/darnit/core/utils.py:186, :302—prefer_upstream: bool = True.utils.py:231—remotes = ["upstream", "origin"] if prefer_upstream else ["origin", "upstream"].cmd_auditcallsdetect_owner_repo(str(repo_path))with no override and prints no repo identity.
The information already exists internally: detect_repo_from_git returns a source field (utils.py:263, 275), but the detect_owner_repo wrapper (:299) collapses it to (owner, repo) and the CLI discards it.
Environment
- darnit version:
main@86f9cfa - Python version: 3.12 (uv-managed)
- OS: any
Additional Context
Suggested fix (visibility only): print the resolved owner/repo + source remote at the top of audit output. A new --owner/--repo flag is likely unnecessary — the origin-preference path (prefer_upstream=False) already resolves origin correctly.
- Lenguaje dominante
- Python
- Estrellas
- 22
- Forks
- 27
- Merge medio
- 4 d 20 h
- PR fusionados (30 d)
- 75
Preparar el entorno
- Sin Dockerfile ni 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 darnitdevorg/darnit
-
ci needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
darnitdevorg/darnit#607 ·
Los mantenedores suelen responder en 3 días
-
good first issue maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
darnitdevorg/darnit#587 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
Container image has no zizmor, so OSPS-AC-04.02 always reports missing_toolPosiblemente ocupada @mlieberman85 la tomó hace 20 días. Abiertoinfrastructure module-baseline
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
darnitdevorg/darnit#585 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
documentation module-core
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
darnitdevorg/darnit#196 ·
Los mantenedores suelen responder en 3 días
-
module-core
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
darnitdevorg/darnit#195 ·
Los mantenedores suelen responder en 3 días
Todos los issues de darnitdevorg/darnit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
strawberry-graphql/strawberry#4794 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
dataforgoodfr/cetolog#21 ·
-
security_citations_test fails against ecc 2026.11.6: SECURITY.md quotes ecc v2026.11.2's linesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
btclib-org/btclib#2932 ·
Los mantenedores suelen responder en 1 día
-
metrics priority: medium
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
LearningCircuit/local-deep-research#8336 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100