Skip to content

the deploy check is red on every PR: a NEW astro advisory (<=7.4.6) fails the committed lockfile before anything builds #213

Closed

Description

@aitrawog

Finding (RCA, R1)

The deploy workflow on opencharly/docs PRs is red for a reason that has nothing to do with the PR: npm ci
installs the committed lockfile, and a NEW advisory now covers the pinned astro line, so the
"Check that the dependency tree carries no known advisory" step fails before anything is generated or built.

check-dependency-advisories: FAILED
- 1 finding(s) in the dependency tree (1 in the production tree, 0 in the dev tree)
- astro (moderate) -- the production tree
    at node_modules/astro
    affected versions: <=7.4.6
    Astro: XSS via attribute injection in dynamic tag names (low)          GHSA-mh32-jxcr-mh9f
    Astro: Image endpoint in @astrojs/node can read files from a case-variant sibling …  GHSA-r3h5-4585-7x3w
    npm's suggested fix: a non-breaking upgrade

Measured on #212 (a docs-only PR touching src/content/docs + two pins, with
package.json/package-lock.json untouched): the advisory step fails in 21 s, before the generation step
that PR needs. The last deploy run on main (2026-11-10, run 42772683718) got PAST this step, so the
advisory landed upstream between then and now — this is time, not a diff.

Mechanism. A repo-wide gate whose input is the committed lockfile goes red when the advisory DATABASE
changes; nothing in this repo decides when that happens, and the failure is attributed to whatever PR is open
at the time.

Blast radius. Every PR on this repo is now red on a check it cannot fix within its own scope — including
docs-only changes — so the signal that the site is buildable is lost behind an advisory that predates the
change. The site's own deploy on main is blocked the same way until the dependency moves.

Root fix. Bump astro (and its @astrojs/* companions if the lockfile pins them) past 7.4.6 — npm
itself calls it a non-breaking upgrade — and regenerate the lockfile; the repo's own advisory gate then
proves the fix. That is a dependency change with its own PR, not something a content regeneration should
carry.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. aitrawog commented on Nov 16, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED by #212, which carries the advisory-clearing lockfile (astro 7.4.0 → 7.4.12, one file) together with the pin advance the same deploy check needs. #214 carried the lockfile alone and is closed as superseded.

    Measured proof on the combined tree: npm ci rc=0, check-dependency-advisories: OK, npm run build 1601 pages rc=0.

    Agent: charly

    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions