Skip to content

chore(deps): lock file maintenance - #380

Merged
CameronBrooks11 merged 1 commit into
mainfrom
renovate/lock-file-maintenance
Oct 14, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
renovate/lock-file-maintenance

Conversation

@renovate

@renovate renovate Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Update Change
lockFileMaintenance All locks refreshed

🔧 This Pull Request updates lock files to use the latest dependency versions.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 6am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Sep 14, 2026
@renovate
renovate Bot force-pushed the renovate/lock-file-maintenance branch 2 times, most recently from 3202dfb to 184bcec Compare September 16, 2026 15:58
@renovate
renovate Bot force-pushed the renovate/lock-file-maintenance branch 2 times, most recently from 50e7e76 to 77c5ce3 Compare October 1, 2026 04:06
@renovate
renovate Bot force-pushed the renovate/lock-file-maintenance branch from 77c5ce3 to 49901f6 Compare October 5, 2026 14:34
@renovate
renovate Bot force-pushed the renovate/lock-file-maintenance branch from 49901f6 to 2cae7e1 Compare October 13, 2026 16:06
@CameronBrooks11
CameronBrooks11 merged commit 2cc9851 into main Oct 14, 2026
26 of 28 checks passed
@CameronBrooks11
CameronBrooks11 deleted the renovate/lock-file-maintenance branch October 14, 2026 02:00
CameronBrooks11 added a commit that referenced this pull request Oct 14, 2026
The npm half of Dependency Audit cannot go green on its own. After lock
file maintenance (#380), the only npm finding is `braces` <= 3.0.3,
[GHSA-vfj7-8cjw-p6xm](GHSA-vfj7-8cjw-p6xm)
(high, CVSS 7.5). The advisory lists no patched version, and 3.0.3 is
the latest `braces` on npm (`npm view braces dist-tags` → `latest:
3.0.3`). npm's suggested fix is downgrading `stylelint` to 7.7.0.

npm has no per-advisory ignore, so this takes the route
`dependency-policy.md` has prescribed since #337: a post-processor over
`npm-audit.json`, mirroring `cargo_audit_gate.py`.

## Changes

- `scripts/ci/npm_audit_gate.py`:
- Blocks on a high/critical advisory not waived by `--ignore <GHSA-ID>`,
and on any severity it does not recognise. Reports moderate/low/info
without blocking.
- Counts each advisory once from the `via` objects; string `via` entries
are the same advisory propagated up the tree. The 7 "high" packages in
#380's report are one advisory.
- Fails closed on a missing or malformed report, and on any
`auditReportVersion` other than 2.
- Every package npm flags at high/critical (or an unknown severity) must
trace through its `via` links to a parsed advisory at least as severe as
itself; an ignored one counts. This stays in force while `braces` is
ignored. npm sets a package's severity to the highest of its advisories,
and a dependency link inherits its source's severity (arborist 9.9.1,
`vuln.js` `addAdvisory`), so a real report always satisfies it. A hidden
advisory no more severe than one already reachable from the same package
cannot be detected.
  - On an id collision, keeps the advisory that would block.
- Warns when an `--ignore` matches nothing, so the entry gets removed
once `braces` is patched.
- `dependency-audit.yml`: `npm audit --json > npm-audit.json || true`,
then the gate with `--ignore GHSA-vfj7-8cjw-p6xm`.
- `dependency-policy.md`: Node row, allowlist mechanics and Required
Tooling updated; `braces` added to the accepted advisories with its
reasoning and re-check trigger. `ci-cd.md`: one line updated.
- `ci-check.yml`: the backend path filter now includes
`scripts/**/*.py`. Before, a PR touching only a gate script, or
`export_openapi.py`/`generate_schema.py` (which `backend-ci.yml` runs),
skipped the backend job.

## Why accepting `braces` is safe here

The DoS needs an attacker-supplied brace pattern. In
`fiberpath_gui/package-lock.json`, `braces`, `micromatch`, `fast-glob`
and `globby` are reached only through `stylelint`, which expands
`src/**/*.css` (`npm run lint:css`). Dropping the dependent, as
`@vitest/ui` was dropped for `flatted` in v0.5.4, is not an option:
`stylelint` 17.16.0 still depends on the same chain.

## Verification

The gate against the real reports:

| Report | `--ignore` braces | Result |
| --- | --- | --- |
| #380 run 38427831685 | yes | rc 0: 1 advisory, accepted |
| #380 run 38427831685 | no | rc 1: braces blocks |
| pre-#380 `main`, scheduled run 38277199756 | yes | rc 1: devalue ×3
and source-map-js block (fixed by #380) |
| npm 11.19.0 registry error (`--registry http://127.0.0.1:9`) | — | rc
1: not `auditReportVersion` 2 |

Hand-built malformed reports, each run with `--ignore` braces as in CI,
against the gate at `c4074d6` (first version), `ff6a5fb` (count
cross-check), `541e813` (severity-blind trace) and this head. The
`row-*` reports are single-shape cases (`row-no-via` holds only a
`braces` package, with its advisory outside `via`). The `hole-*` reports
carry five packages of the `braces` chain plus one hidden critical. The
`chain-*` reports put a hidden critical on, or link one into, the
ignored chain.

| Report | `c4074d6` | `ff6a5fb` | `541e813` | now | Check that fails it
now |
| --- | --- | --- | --- | --- | --- |
| `row-capitalised`: severity `"High"` | 0 | 1 | 1 | 1 | unrecognised
severity blocks |
| `row-no-severity` | 0 | 1 | 1 | 1 | unrecognised severity blocks |
| `row-no-via`: advisory outside `via` | 0 | 1 | 1 | 1 | trace |
| `row-via-string`: `via` is a string | 0 | 1 | 1 | 1 | trace |
| `row-id-collision`: no-id low + no-id critical | 0 | 1 | 1 | 1 |
collision keeps the blocking advisory |
| `hole-outside-via` | 0 | **0** | 1 | 1 | trace |
| `hole-via-string`: `via` names a missing package | 0 | **0** | 1 | 1 |
trace |
| `hole-id-collision` | 0 | **0** | 1 | 1 | collision keeps the blocking
advisory |
| `chain-hidden-critical`: critical on `micromatch`, advisory outside
`via` | 0 | **0** | **0** | 1 | trace, severity-aware |
| `chain-critical-link`: critical package linking into `micromatch` | 0
| **0** | **0** | 1 | trace, severity-aware |

The `chain-*` rows are the round-3 fixtures
`open-hidden-critical-on-chain-pkg` and
`open-hidden-critical-plus-chain-link`. Across 51 report files, each run
with and without the `braces` ignore (102 runs), these two are the only
results that differ between `541e813` and this head. The pre-#380
report, ten flagged packages with mixed high and moderate advisories,
passes the trace once its five blockers are waived.

`uv run ruff check` and `ruff format --check` are clean; `pytest
tests/ci` passes 54 tests. `uv run mypy` does not cover `scripts/` or
`tests/` (its `packages` are the three shipped packages), the same as
for the cargo gate.

Mutations, each anchor matched exactly once, the file hash checked to
confirm the mutation applied, `--maxfail=1000` so every failing test is
listed:

```
any ignore accepts all          -> test_ignored_advisory_does_not_hide_another_critical test_ignore_does_not_cover_another_advisory test_id_collision_keeps_the_blocking_advisory
missing vulnerabilities passes  -> test_missing_vulnerabilities_fails_closed
no stale-ignore warning         -> test_stale_ignore_warns_but_passes
warn on every ignore            -> test_ignore_accepts_listed_advisory
id ignores GHSA url             -> test_advisory_id_from_url test_ignore_accepts_listed_advisory test_via_cycle_is_traced_without_recursing_forever test_main_passes_ignore_flags
any version accepted            -> test_other_report_versions_fail_closed[1] [3] [None]
unknown severity passes         -> test_unrecognised_severity_blocks[High] [None] []
critical filed non-blocking     -> test_blocks_on_critical test_ignored_advisory_does_not_hide_another_critical test_id_collision_keeps_the_blocking_advisory
high filed non-blocking         -> test_blocks_on_high test_ignore_does_not_cover_another_advisory test_main_passes_ignore_flags
blocking returns 0              -> 9 tests
no trace check                  -> test_untraced_package_fails_closed_while_braces_ignored[entry0..3] test_high_package_with_only_a_moderate_advisory_fails_closed test_critical_on_ignored_chain_package_fails_closed test_critical_linked_into_ignored_high_chain_fails_closed test_critical_linked_only_to_moderate_package_fails_closed
collision keeps first           -> test_id_collision_keeps_the_blocking_advisory
trace ignores string links      -> test_ignore_accepts_listed_advisory test_via_cycle_is_traced_without_recursing_forever test_main_passes_ignore_flags
string link always explains     -> test_critical_on_ignored_chain_package_fails_closed test_critical_linked_into_ignored_high_chain_fails_closed test_critical_linked_only_to_moderate_package_fails_closed
trace accepts any severity      -> test_high_package_with_only_a_moderate_advisory_fails_closed test_critical_on_ignored_chain_package_fails_closed test_critical_linked_into_ignored_high_chain_fails_closed test_critical_linked_only_to_moderate_package_fails_closed
trace severity-blind            -> test_critical_on_ignored_chain_package_fails_closed test_critical_linked_into_ignored_high_chain_fails_closed
package need ignores severity   -> test_critical_on_ignored_chain_package_fails_closed test_critical_linked_into_ignored_high_chain_fails_closed
no cycle guard                  -> test_via_cycle_is_traced_without_recursing_forever
trace skips unknown pkg sev     -> test_untraced_package_fails_closed_while_braces_ignored[entry3]
```

Known limits, not addressed: the trace is recursive, so a `via` chain
about 1,000 packages deep raises `RecursionError` (rc 1, a false red);
the deepest chain in either real report is 7. An `--ignore` is keyed by
advisory id, so if GHSA-vfj7-8cjw-p6xm were extended to a second package
it would be waived there too.
CameronBrooks11 added a commit that referenced this pull request Oct 14, 2026
Dependency Audit failed 13 of the 30 weekly scheduled runs before #380.
Each time the fix was already sitting in Renovate's lock file
maintenance PR, and the audit stayed red until someone merged it. This
lets Renovate merge that PR on its own.

```json
"lockFileMaintenance": {
  "automerge": true,
  "platformAutomerge": false
}
```

- **Scope:** fiberpath only, not the org preset. The other repos
extending `github>fiberpath/renovate-config` have no lockfile for lock
file maintenance to refresh: filament-winder, `.github` and
renovate-config track none, and fiberpath.github.io has only
`requirements.txt`. The preset's `enabled` and `before 6am on monday`
schedule still apply.
- **When it merges:** with `ignoreTests` at its default (`false`),
Renovate merges only after every status check on the branch has passed,
including Dependency Audit, GUI Packaging and the macOS/Windows/Linux
builds. A failed or cancelled check leaves the PR open for a manual
merge, the same as today.
- **`platformAutomerge: false`:** GitHub's native auto-merge would merge
once the required checks pass, and `main` requires only `CI Check`.
Native auto-merge is already off here (`allow_auto_merge: false`), so
Renovate would fall back to merging the PR itself anyway. Setting it
explicitly keeps that if the repository setting is turned on later.
- **Commit message:** the repo squashes with the PR body as the commit
message, so the merge commit is Renovate's lock file maintenance PR
body, as it is today.

`renovate.json` parses (`python3 -m json.tool`). I didn't run
`renovate-config-validator`; the shape matches Renovate's documented
lock file maintenance automerge example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant