api-platform / api-platform/create-client
[potential Security Alert] New `test-next-app` script added in `@api-platform/client-generator@0.8.0`
- Lingua principale
- TypeScript
- Stelle
- 376
- Fork
- 132
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
A new `test-next-app` script was detected in version `0.8.0` of the package `@api-platform/client-generator`.
**Suspicion Score:** 11/100
**Script content:**
```
rm -rf ./tmp/app && mkdir -p ./tmp/app && yarn create next-app --typescript ./tmp/app/next && yarn --cwd ./tmp/app/next add isomorphic-unfetch formik react-query && cp -R ./tmp/next/* ./tmp/app/next && rm ./tmp/app/next/pages/index.tsx && rm -rf ./tmp/app/next/pages/api && yarn --cwd ./tmp/app/next build && start-server-and-test 'yarn --cwd ./tmp/app/next start' http://127.0.0.1:3000/books/ 'yarn playwright test'
```
see [npm documentation on package scripts](https://docs.npmjs.com/cli/v9/using-npm/scripts) for more details.
and [the detector](https://github.com/alphaleadership/npm-check). to understand why this script might be dangerous.
to get the alert only for dangerous scripts, please visit[the telegram](https://t.me/npmalert) if you want to improve the algorythm open a pull request
This could be a security risk. Please investigate.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.