Add a report-only vulnerability scan for sandbox images in CI
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
Start with .github/workflows/build-images.yml and images/docker-bake.hcl to understand how the PR image build runs and how its Bake targets are configured. The issue proposes loading built images into local Docker and scanning them with Grype; check the workflow's runner disk capacity for the universal image. Done means a report appears in $GITHUB_STEP_SUMMARY while the scan remains report-only and published image configuration is unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The vercel/sandbox/* images are the base for every sandbox, but CI doesn't
check them for known vulnerabilities (CVEs). I'd like to add a report-only
scan to the PR image build, and I'm happy to work on it.
Current behaviour
.github/workflows/build-images.ymlruns on PRs that touchimages/**.
It builds each image withpush: falseand only checks that the build
succeeds. Nothing checks the packages inside the image.images/docker-bake.hcl(_commontarget) builds every image with:
So no SBOM is generated either.attest = [ "type=provenance,disabled=true", "type=sbom,disabled=true" ]
Packages with known CVEs can therefore ship in published images without
anyone noticing. The universal image has the largest attack surface,
since it bundles Node.js, Bun, Python and coding agents.
Proposal
Add a Grype scan step to the images job in build-images.yml:
- Build as today, but load the image into the runner's local Docker
(set: *.output=type=docker, CI only) so it can be scanned. - Scan it with
anchore/scan-action. - Write the results to the job summary (
$GITHUB_STEP_SUMMARY).
Limits the change keeps to
- Report-only:
fail-build: false, so it never blocks a merge. - Low noise:
only-fixed: true, so it only reports CVEs that have a fixed version. - Published images unchanged:
docker-bake.hclandpublish-images.yml
are not touched; the override only applies to the PR build. - No new permissions: the workflow stays
contents: read(results go to
the job summary rather than code scanning, which would need
security-events: write). - Pinned to a commit SHA rather than a version tag. I'm proposing
Grype overtrivy-actionbecause of the March 2026 trivy-action tag
compromise (CVE-2026-33634).
Questions for maintainers
- Were SBOM/provenance attestations disabled on purpose (for example for
VCR or microVM image compatibility)? If so, I'll leave them as they are. - Would you prefer the scan in
build-images.yml(PRs), in
publish-images.yml(published images), or both? - Should it stay report-only, or would you like it to fail on CRITICAL
CVEs once the backlog is known?
Next steps
I have a draft ready and will test it on my fork first, including whether
loading the large universal image fits in the runner's disk space. Once
you're happy with the approach, I'll open a PR linked to this issue with
the test run.
- Lingua principale
- TypeScript
- Stelle
- 227
- Fork
- 53
- Merge medio
- 2g 8h
- PR unite (30g)
- 38
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vercel/sandbox
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Discussion: Potential Excessive Authorization Across Independent Executions in Vercel SandboxesAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
I maintainer di solito rispondono entro 1 giorno
-
fs.rename() moves the source inside an existing directory instead of replacing itForse già presa @RaphaelFakhri l’ha presa 35 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 71/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
I maintainer di solito rispondono entro 1 giorno
-
readdir output parsing is ambiguous for filenames containing a newline or a pipeForse già presa @mmarufov l’ha presa 44 giorni fa. Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di vercel/sandbox
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
posit-dev/positron-sas-extension#196 ·
I maintainer di solito rispondono entro 1 giorno
-
bug composer
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
inmanta/web-console#8037 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: AlFajer Palestine FHDApertacheck:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
bug: v5 dist/types/components.d.ts imports @stencil/core/runtime instead of ./stencil-public-runtimeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno