Skip to content

chore(deps): port the august bumps to develop and fix the audit gate - #142

Merged
WhiteMuush merged 3 commits into
developfrom
chore/deps-august-bumps
Aug 11, 2026
Merged

chore(deps): port the august bumps to develop and fix the audit gate#142
WhiteMuush merged 3 commits into
developfrom
chore/deps-august-bumps

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

Replaces the three Dependabot pull requests opened against main (#139, #140, #141).

Why they could not be merged as-is

Dependabot targets the default branch, main, which is 64 commits behind develop. Their lockfiles conflict with develop (next-auth removed, better-auth added), so a retarget was not an option. The bumps are redone here against the develop tree.

Ported

From #139:

  • github/codeql-action 4.37.4 to 4.37.6

From #140 (production):

  • @aws-sdk/client-identitystore to ^3.1106.0
  • @base-ui/react to ^1.7.0
  • lucide-react to ^1.30.0
  • next to ^16.3.0

From #141 (development):

  • @types/node to ^26.2.0
  • @types/pg to ^8.21.0
  • eslint-config-next to ^15.5.23
  • tsx to ^4.23.11

Left out on purpose

@tanstack/react-table 8 to 9, from #140. Breaking major: the row model factories are renamed (getCoreRowModel to createCoreRowModel, and so on) and useReactTable is gone. It broke the type-check on #140 with 13 errors in src/components/employees/EmployeeTable.tsx. Needs a proper migration, tracked separately.

Audit gate

The Dependency audit job was already red on develop before these pull requests, on two high advisories reaching the tree through transitives:

Both are pinned with an override (js-yaml ^4.3.1, nanoid ^3.3.18), following the pattern already used for brace-expansion and fast-uri.

Verified locally

  • npm run lint: pass
  • npx tsc --noEmit: pass
  • npm test: 37 files, 192 tests, pass
  • npm run build: pass
  • npm audit --audit-level=high: found 0 vulnerabilities

Dependabot opened #139, #140 and #141 against main, which is 64 commits
behind develop. Their lockfiles conflict with develop (next-auth removed,
better-auth added), so the bumps are redone here against the develop tree.

Ported:
- github/codeql-action 4.37.4 to 4.37.6
- @aws-sdk/client-identitystore, @base-ui/react, lucide-react, next 16.3.0
- @types/node, @types/pg, eslint-config-next, tsx

Left out: @tanstack/react-table 8 to 9. It is a breaking major that renames
the row model factories (getCoreRowModel to createCoreRowModel) and needs a
migration of EmployeeTable.tsx. Tracked separately.

The Dependency audit job was already failing on develop before these PRs,
on two high advisories reaching us through transitives:
- js-yaml 4.3.0 via @eslint/eslintrc (GHSA-5p4m-2wfm-xmqj)
- nanoid 3.3.16 via postcss (GHSA-2v37-7h3g-55p8)
Both are pinned through overrides, so npm audit --audit-level=high is clean.
Next 16.3 ships an `agentRules` option, on by default, that makes `next dev`
append a Next-authored block to AGENTS.md on every run. Two problems here:
the block contains a non-ASCII character, which the pre-push ASCII gate
rejects, and the working tree goes dirty on each dev start.

AGENTS.md is ours, so the option is turned off.
@WhiteMuush

Copy link
Copy Markdown
Owner Author

Heads up on the red Integration (DB) job here: it is not caused by these bumps.

src/lib/rbac/require-permission.itest.ts reassigns the shared seeded admin to Viewer mid-run, and Vitest runs test files in parallel against the same database, so roles/route.itest.ts read the admin's role inside that window. The failure lists exactly the SOC Analyst preset minus its :read entries, which is the Viewer set.

Fixed in #144. Merge that first, then this branch needs a rebase for the job to go green. Every other check here is passing, including the Dependency audit gate that was red on all three Dependabot pull requests.

…min (#144)

require-permission.itest.ts reassigned the shared admin account to Viewer,
then restored Administrator at the end. That only holds if suites run one at
a time. Vitest runs test files in parallel against the same database, so any
suite reading the admin's role inside that window sees the read-only Viewer
set instead.

This is what broke Integration (DB) on the deps branch: roles/route.itest.ts
reported the admin missing exactly the ten non-read permissions of the SOC
Analyst preset, which is the Viewer set. Forcing the admin to Viewer and
running that suite reproduces the CI output character for character.

The suite now seeds its own company and asserts on that company's Viewer
role. It never touched the admin user for its assertions anyway, the
reassignment was dead weight that only created the race.
@WhiteMuush
WhiteMuush merged commit e1a635f into develop Aug 11, 2026
13 checks passed
@WhiteMuush
WhiteMuush deleted the chore/deps-august-bumps branch August 11, 2026 13:07
@github-project-automation github-project-automation Bot moved this from Todo to Done in DataShield Roadmap Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant