Repository navigation
fix: regenerate lock file to resolve Snyk vulnerabilities - #283
Conversation
Lock file regenerated with --legacy-peer-deps (fixed 57 on its own); a plain install fails with ERESOLVE because of the existing gatsby>eslint 9.26.0 override vs eslint ^8.57.1. Peer deps (gatsby tree) are no longer in the dev lock file. Direct upgrades: none Overrides: none Vuln count: snyk n/a (account forbidden), npm audit 67 → 10. Build verified passing. Refs: DX-29607 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
Replaces the legacy-peer-deps regeneration, which dropped the gatsby peer tree and broke Snyk's lock parsing in CI. The lock is master's with only npm-audit-flagged packages updated within their ranges (npm update --package-lock-only --force). npm audit 73 -> 54 (critical 3 -> 0, high 53 -> 39). Build and jest pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
npm audit fix fails here with ERESOLVE (pre-existing gatsby>eslint 9.26.0 override vs eslint ^8). Applied the equivalent in-range updates with npm update --package-lock-only --force, which keeps the gatsby peer tree (unlike --legacy-peer-deps). npm audit 54 -> 50 (high 39 -> 35). npm ci, build and jest (16/16) pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
Snyk dependency fixes (DX-29607)
Repo type: LIBRARY. It is published to npm as
gatsby-source-contentstack. Consumers resolve ourpackage.jsonranges themselves and never see this repo'spackage-lock.jsonoroverrides. The lock-file changes here fix our own dev/CI/release install.Fix
package-lock.jsonupdated in place frommaster's lock. Only the packages flagged by npm audit were updated, each within its existing semver range (npm update <pkgs> --package-lock-only). There are no major bumps and nopackage.jsondependency changes.master's.npm installonmasterfails with ERESOLVE. The existing override"gatsby": { "eslint": "9.26.0" }clashes with the devDependencyeslint ^8.57.1, whicheslint-config-airbnb@19needs. The update was therefore run with--force, which only overrides that peer conflict and still records the peers. The override is unchanged.npm audit (lock file), before → after
masterWhat remains, and why
query-string7.x anddecode-uri-component(high):query-stringis a runtime dependency, so this reaches consumers. The fix needsquery-string10, a major ESM-only bump.undiciandip-address: bundled insidenpmunder@semantic-release/npm(dev/release only). Bundled dependencies cannot be overridden.gatsby > eslint 9.26.0override so a plainnpm installworks again.Verification
npm ci --force, thennpm run build: passes (Babel compiled 25 files).jest: 6 suites and 16 tests pass.npm audit. No Jira tickets were updated.🤖 Generated with Claude Code
npm audit fix follow-up
npm audit fixcannot run here: it fails with ERESOLVE because of the existing eslint override. The same in-range updates were applied withnpm update --package-lock-only --force, which keeps the gatsby peer tree. npm audit goes 54 → 50 (high 39 → 35).npm ci, the build and jest (16/16) pass.