Fail the build on high-severity dependency advisories
Les mainteneurs répondent en général sous 4 jours
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 58/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- github-actions, json, typescript
- Domaine
- ci-cd, documentation, security
Piste de recherche
Start by reading website/package.json, .github/workflows/pr-build-website.yml, the deploy workflow, and TRIAGE.md. Decide and document how unfixable high-severity advisories such as braces and node-forge are handled, then add and verify the audit step after npm ci in both build paths. Done means high and critical findings fail where intended, while the documented exception or scope policy prevents an indiscriminate gate from blocking every build.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem statement
website/package.json defines audit:ci (npm audit --audit-level=high), and no workflow runs it. Grepping .github/workflows/ for npm audit or audit:ci returns nothing.
So a dependency with a known high-severity advisory can be merged today, and the first anyone hears about it is a Dependabot alert after the fact. The current open alerts (node-forge, braces) are exactly the class of problem a gate would have surfaced at the point of change rather than in the Security tab later.
Proposed solution
Add an advisory check to the existing PR build gate (pr-build-website.yml) and to the deploy workflow, so the same step runs on the way in and on the way to production:
- Run
npm run audit:ci(ornpm audit --audit-level=high) afternpm ci. - Fail the job on high or critical findings.
- Do not fail on moderate or low, otherwise the gate becomes noise and gets bypassed.
Open question worth settling in the PR: whether to gate on findings with no available fix. braces (CVE-2026-93687) and node-forge (CVE-2026-85393) currently have no patched release, so a strict gate would block every build. The gate is only useful if the unfixable set is explicitly allow-listed, or if npm audit is run with --omit=dev so build-tool findings do not gate releases.
Scope and impact
Touches one workflow file. Risk is a gate that reddens builds for advisories nobody can fix; the allow-list decision above needs to be made first, and should be written into TRIAGE.md so it does not drift.
Acceptance criteria:
- High and critical advisories fail the PR build
- The unfixable set is documented rather than silently tolerated
-
TRIAGE.mddescribes the gate alongside Dependabot and CodeQL
Absorbed from #339
#339 was closed when its alerts resolved themselves (the braces advisory was withdrawn and website/yarn.lock was deleted). Its third acceptance box moved here, because this issue already owns the TRIAGE.md write-up:
-
TRIAGE.mdalso states the dismissal bar: who may dismiss a finding, which reasons are acceptable, and that a dismissal needs a comment naming the condition that reopens it.
- Langage dominant
- TypeScript
- Étoiles
- 13
- Forks
- 24
- Merge moyen
- 2 j 3 h
- PR mergées (30 j)
- 16
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de IntersectMBO/developer-experience
-
Rename the q4-2025 sesion-notes folder to session-notes, and keep its URL workingPeut-être pris @IanoNjuguna l’a pris aujourd’hui. Ouvertedocumentation Low Priority
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
IntersectMBO/developer-experience#406 ·
Les mainteneurs répondent en général sous 4 jours
-
react 19: the Dependabot halves cannot resolve alone, so the bump needs one combined PRPeut-être pris @IanoNjuguna l’a pris aujourd’hui. Ouvertedependencies
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
IntersectMBO/developer-experience#403 ·
Les mainteneurs répondent en général sous 4 jours
-
Document colour roles in the brand baseline, and resolve the gradient and alpha restrictions it contradictsPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertedocumentation
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
IntersectMBO/developer-experience#376 ·
Les mainteneurs répondent en général sous 4 jours
-
documentation pinned
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
IntersectMBO/developer-experience#363 · 1 commentaire ·
Les mainteneurs répondent en général sous 4 jours
-
documentation pinned
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
IntersectMBO/developer-experience#362 · 1 commentaire ·
Les mainteneurs répondent en général sous 4 jours
Toutes les issues de IntersectMBO/developer-experience
Issues similaires
-
[UI] Guard webApis against undefined window in SSR environmentsPeut-être pris @madhavzanwar l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
headroomlabs-ai/headroom#4992 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
paperclipai/paperclip#22575 ·
Les mainteneurs répondent en général sous 1 jour
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
lingdojo/kana-dojo#34502 · 1 commentaire · 5 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
bug frontend good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
nikhilb2/simple_invoicing#935 ·