Skip to content

fix(deps): resolve security advisories in examples dependencies - #289

Merged
lourens-octopus merged 1 commit into
mainfrom
lourens/update-examples-deps
Jul 23, 2026
Merged

fix(deps): resolve security advisories in examples dependencies#289
lourens-octopus merged 1 commit into
mainfrom
lourens/update-examples-deps

Conversation

@lourens-octopus

Copy link
Copy Markdown
Contributor

What

Clears all 9 security advisories flagged in the examples/ project (npm audit now reports 0 vulnerabilities).

Root cause

examples/package-lock.json had the @octopusdeploy/api-client github dependency pinned to a stale commit (v3.7.0), which pulled in outdated, vulnerable transitive deps: adm-zip (<0.6.0), axios, form-data, follow-redirects, lodash, and glob@8.0.3 β†’ minimatch/brace-expansion. Only diff (via ts-node) was unrelated to the api-client.

Fix

  • Refreshed the api-client pin to current main (3.11.6) β€” cascade-clears 6 of the advisories (adm-zip, axios, form-data, follow-redirects, lodash, api-client itself).
  • npm audit fix (non-major) bumps the remaining transitives: minimatch β†’ 5.1.9, brace-expansion β†’ 2.1.2, diff β†’ 4.0.4.

Notes

  • examples/package-lock.json only β€” no package.json or example source changes.
  • Examples still compile (npm run build / tsc passes) against api-client 3.11.6.

πŸ€– Generated with Claude Code

The examples project pinned @octopusdeploy/api-client to a stale commit
(v3.7.0), dragging in vulnerable adm-zip, axios, form-data, follow-
redirects, lodash and glob->minimatch->brace-expansion. Refreshes the
github pin to current main (3.11.6) and runs npm audit fix to bump the
remaining transitive minimatch/brace-expansion (via glob) and diff
(via ts-node). npm audit now reports 0 vulnerabilities; examples still
compile (tsc).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lourens-octopus
lourens-octopus merged commit f0635e0 into main Jul 23, 2026
4 checks passed
@lourens-octopus
lourens-octopus deleted the lourens/update-examples-deps branch July 23, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants