voidzero-dev / voidzero-dev/vite-plus

Reject Vite+ install script if the `@voidzero-dev/vite-plus-cli-*` package does not have provenance

Cerrado
#1,826 1 comentario 2 reacciones 1 asignado Reclamado por @kazupon Ver en GitHub
pending triage
Lenguaje dominante
Rust
Estrellas
5.8k
Forks
262
Merge medio
23 h 41 min
PR fusionados (30 d)
138

Descripción

### Description

Reject Vite+ install script (`https://vite.plus`, `https://vite.plus/ps1`) if the `@voidzero-dev/vite-plus-cli-*` package does not have provenance.

Also reject `vp upgrade` for the same case.

These will make attacking viteplus more difficult.

### Suggested solution

Add checks here:
- https://github.com/voidzero-dev/vite-plus/blob/b48e0a0b6219a34664fb40c7f9dcbd0a6e150cd8/packages/cli/install.sh#L927-L934
- https://github.com/voidzero-dev/vite-plus/blob/b48e0a0b6219a34664fb40c7f9dcbd0a6e150cd8/packages/cli/install.ps1#L524-L531

And for update:
- https://github.com/voidzero-dev/vite-plus/blob/b48e0a0b6219a34664fb40c7f9dcbd0a6e150cd8/crates/vite_global_cli/src/commands/upgrade/mod.rs#L126

### Alternative

_No response_

### Additional context

_No response_

### Validations

- [x] Read the [Contributing Guidelines](https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md).
- [x] Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- [x] Check that there isn't already an issue requesting the same feature.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.