Skip to content

fix: remediate Dependabot security alerts (2026-06-01)#2421

Closed
typeagent-bot[bot] wants to merge 1 commit into
mainfrom
automated/fix-dependabot-alerts-20260601-69
Closed

fix: remediate Dependabot security alerts (2026-06-01)#2421
typeagent-bot[bot] wants to merge 1 commit into
mainfrom
automated/fix-dependabot-alerts-20260601-69

Conversation

@typeagent-bot
Copy link
Copy Markdown
Contributor

@typeagent-bot typeagent-bot Bot commented Jun 1, 2026

Automated Dependabot Alert Remediation

This PR was automatically generated by the fix-dependabot-alerts workflow.
Each fix was applied individually and build-verified before inclusion.

Summary

  • Applied (10): exifreader ip-address lodash-es nodemailer qs underscore uuid vite ws xml2js
  • Blocked (0): (none)
  • No patch available (0): (none)
  • Rolled back (1): esbuild
  • Skipped (recent rollback, 2): @anthropic-ai/sdk diff
  • Workspaces with analysis failures: (none)
  • Build: ✅ Passed
  • Shell packaging: ✅ Passed

Note: the analysis source (fix-dependabot-alerts.mjs) is broader than the GitHub Dependabot REST API — it also audits the lockfile directly. Some packages listed above may not have a corresponding open Dependabot alert, and vice versa.

How this works

  1. Analyses all open Dependabot alerts
  2. Applies each fix individually with build verification
  3. Rolls back any fix that breaks the build
  4. Only passing fixes are included in this PR

Review checklist

  • Check that no breaking changes were introduced
  • Verify rolled-back packages are investigated separately
  • Run tests locally if concerned about specific packages

Automated by fix-dependabot-alerts workflow.

Applied: exifreader ip-address lodash-es nodemailer qs underscore uuid vite ws xml2js
Rolled back: esbuild
Blocked: 0 package(s)
Shell packaging: passed

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@typeagent-bot typeagent-bot Bot added dependencies Pull requests that update a dependency file security labels Jun 1, 2026
@typeagent-bot typeagent-bot Bot requested a deployment to development-fork June 1, 2026 11:45 Waiting
@typeagent-bot typeagent-bot Bot requested a deployment to development-fork June 1, 2026 11:45 Waiting
@TalZaccai TalZaccai closed this Jun 1, 2026
DLehenbauer pushed a commit to DLehenbauer/TypeAgent that referenced this pull request Jun 2, 2026
…rosoft#2422)

## Problem

The `Final build verification` step in
`.github/workflows/fix-dependabot-alerts.yml` ran `pnpm run build`,
which uses **fluid-build** incrementally. fluid-build's per-package
fingerprint (and tsc's `.tsbuildinfo`) is keyed off the package's own
sources plus the **declared** dep specs in `package.json` — it does
**not** invalidate when a transitive dep is bumped within its existing
semver range. As a result, a breaking `.d.ts` change in an upgraded dep
can pass the script's verification while still failing CI's clean
`build_ts` job, producing PRs that break `main` on merge.

### Concrete case: PR microsoft#2421

- `exifreader` bumped `4.30.1 → 4.40.3` (in-range under `^4.30.1`)
- The new `exifreader` `TypedTag` generic gained a 2nd nullable-tuple
type parameter
- This broke `typechat-utils/src/image.ts:161` —
`GPSLatitude`/`GPSLongitude` no longer assignable to the helper that
consumes them
- Script's incremental build skipped re-checking `typechat-utils` (no
source change, no package.json change) → reported ✅
- CI's fresh checkout did a clean type-check → caught it on all 6
`build_ts` matrix legs

## Fix

Switch the final verification to `pnpm run rebuild` (= `fluid-build . -t
build --rebuild`), matching the workload CI's fresh checkout does. The
per-package mid-loop incremental build (line 352) is left as-is for
speed — the final rebuild is the backstop. Any package that does fail
the rebuild gets recorded in the existing rollback-cooldown state so the
same broken bump isn't re-proposed for 7 days.

## Follow-up

Next scheduled run should clean-rebuild, fail on the exifreader change,
and auto-roll-back, putting `exifreader` on the 7-day cooldown. PR microsoft#2421
should be closed.

Repro run:
[26750395888](https://github.com/microsoft/TypeAgent/actions/runs/26750395888)
(workflow ✅) vs PR microsoft#2421's `build_ts` failures (CI ❌).

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant