npm 12 invalid abbreviated flag "--prod"
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Start from the jf audit entry point for npm dependency collection and trace how --dep-type prodOnly produces the npm ls --prod command. Reproduce the failure with npm 12.2.0 using the command shown, then verify that a production-only scan completes successfully without the invalid abbreviated flag.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
NPM 11 is the last major version steal supported abbreviated flag --prod
When I execute jf-audit with NPM 12 and --dep-type prodOnly, the option --prod is injected and throw exit
It works if the option --dep-type prodOnly is not included in the command line.
Current behavior
$ jf audit --npm --dep-type prodOnly --watches [xxx] --fail=false --format simple-json
08:34:10 [Info] ####### Starting jf audit Scan #######
08:34:10 [Info] Command flags: [--dep-type=prodOnly --fail=false --format=simple-json --npm=true --watches=xxx]
08:34:12 [Info] Detecting recursively targets for scan in current directory
08:34:14 [Info] Generating SBOM...
08:34:14 [Info] Calculating npm dependencies...
08:34:15 [Warn] error while running '/usr/local/bin/npm ls --prod --ignore-scripts --json --all --long': exit status 1
Exit prior to config file resolving
cause
Invalid abbreviated flag "--prod". Did you mean "--production"?
08:34:15 [Info] Used npm version: 12.2.0
Reproduction steps
With NPM 12
$ jf audit --npm --dep-type prodOnly --watches [xxx] --fail=false --format simple-json
Expected behavior
The ability to scan only production dependencies
No response
JFrog CLI-Security version
?
JFrog CLI version (if applicable)
2.125.0
Operating system type and version
alpine 3.23
JFrog Xray version
No response
- Lenguaje dominante
- Go
- Estrellas
- 13
- Forks
- 53
- Merge medio
- 3 d 2 h
- PR fusionados (30 d)
- 24
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 jfrog/jfrog-cli-security
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
jfrog/jfrog-cli-security#906 ·
Los mantenedores suelen responder en 2 días
-
feature request
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
jfrog/jfrog-cli-security#893 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
jfrog/jfrog-cli-security#871 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
jfrog/jfrog-cli-security#817 ·
Los mantenedores suelen responder en 2 días
-
feature request
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
jfrog/jfrog-cli-security#824 ·
Los mantenedores suelen responder en 2 días
Todos los issues de jfrog/jfrog-cli-security
Issues similares
-
date_time, url_encode, html_escape, to_unix_time, contains_all and contains_any panic when called without argumentsPosiblemente ocupada @antcybersec la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
projectdiscovery/dsl#372 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
JuliusBrussee/caveman#1449 ·
Los mantenedores suelen responder en 1 día
-
bot-found bug priority: P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
madenvel/KalinkaPlayer#498 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
openclaw/gogcli#1291 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día