Skip to content

CL-8980 | upgrade v2-dev dependencies to clear npm audit advisories and add ggshield hooks - #310

Merged
SakshiKoli-CS merged 1 commit into
v2-devfrom
CL-8980
Nov 26, 2026
Merged

SakshiKoli-CS merged 1 commit into
v2-devfrom
CL-8980

Conversation

@SakshiKoli-CS

@SakshiKoli-CS SakshiKoli-CS commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What

Brings v2-dev level with the dependency and hook fixes development already has, before Launch CLI V2 is promoted to staging. Ticket: CL-8980.

development is not merged wholesale: most of its 17 missing commits change V1 files that V2 deleted. Only what V2 still needs is ported, as one commit.

  • npm audit fix. 10 advisories → 0, all in dev-only packages:
    • handlebars 4.7.9 → 4.7.10 (critical)
    • source-map-js 1.2.1 → 1.2.4 (high)
    • minimatch 10.2.5 → 11.0.9, along with typescript-eslint / @typescript-eslint/* 8.63 → 8.74 and eslint-config-oclif 6.0.176 → 6.0.179 (moderate)
  • @oclif/core ^4.2.7 → ^4.14.0, as in development fix(deps): upgrade open to 11 and @oclif/core to 4.14 to clear Snyk findings #286. The lockfile already resolved 4.14.0. It stays on 4.x to match csdx 2.0.2 (^4.11.14).
  • ggshield secret scan in .husky/pre-commit and .husky/pre-push, as in development e0aad60 (chore(hooks): add ggshield secret scan to husky hooks and drop secrets-scan workflow #267) but without the GitGuardian marker comments. It warns and continues when ggshield isn't installed, and skips in CI. pre-push reads the pushed refs once and pipes them to both ggshield and the Talisman/trufflehog scan.
  • .talismanrc: checksums for both hooks (Talisman flags the setup-URL line) and a refreshed package.json checksum.

What users install

Comparing the runtime part of the lockfile (no dev packages), 525 of 526 packages are identical. The only change is @isaacs/nonrecursive-glob-match 1.0.3 → 1.1.0, a minor bump inside @oclif/core's minimatch range (^1.0.3). The installed @oclif/core is 4.14.0, as before.

Tests

  • npm audit: 0 vulnerabilities
  • npm run lint, npm run build: pass
  • npm test: 201 suites, 4112 tests pass, in the pre-push hook on the final commit. test/integration/environments-create.test.ts hit the known 5 s beforeAll timeout flake on one earlier run, then passed 3/3 on its own.
  • Built CLI smoke test: --version, launch --help and the subcommand help work, and bare csdx launch prints the V2 message.

Out of scope: major upgrades (oclif/core 5, plugin-help 7, express 5, Jest 30, TypeScript 7, ESLint 10) and V1-only development commits.

#claude_code#
🤖 Generated with Claude Code

@SakshiKoli-CS
SakshiKoli-CS requested review from a team as code owners November 26, 2026 07:01
@snyk-io

snyk-io Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 2 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ 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:

  • Critical without fixes: 0
  • High without fixes: 2
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@SakshiKoli-CS SakshiKoli-CS changed the title CL-8980 | clear npm audit advisories, pin @oclif/core 4.14 and add ggshield hooks CL-8980 | upgrade v2-dev dependencies to clear npm audit advisories and add ggshield hooks Nov 26, 2026
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 2 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ 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:

  • Critical without fixes: 0
  • High without fixes: 2
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

Harshi-Shah-CS
Harshi-Shah-CS previously approved these changes Nov 26, 2026

@Harshi-Shah-CS Harshi-Shah-CS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

…nd add ggshield hooks

Bring v2-dev level with the dependency and hook fixes development already
has, before Launch CLI V2 is promoted to staging. development is not merged
wholesale: most of its 17 missing commits change V1 files that V2 deleted.

- npm audit fix: 10 advisories to 0, all in dev-only packages.
  handlebars 4.7.10 (critical), source-map-js 1.2.4 (high), minimatch
  11.0.9 with typescript-eslint 8.74 and eslint-config-oclif 6.0.179
  (moderate). The only runtime lockfile change is
  @isaacs/nonrecursive-glob-match 1.0.3 -> 1.1.0, within @oclif/core's
  minimatch range.
- @oclif/core range ^4.2.7 -> ^4.14.0 (development #286). The lockfile
  already resolved 4.14.0; it stays on 4.x to match csdx 2.0.2.
- ggshield secret scan in the husky pre-commit and pre-push hooks
  (development e0aad60), without the GitGuardian marker comments.
  pre-push reads the pushed refs once and pipes them to both ggshield and
  the Talisman/trufflehog scan.
- .talismanrc: checksums for both hooks (Talisman flags the setup-URL
  line), a refreshed package.json checksum, and the entry #309 left out
  for src/uploads/upload.archive.test.ts (its secret.txt fixture path
  trips Talisman on every push of a branch rebased onto v2-dev).

#claude_code#
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 2 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ 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:

  • Critical without fixes: 0
  • High without fixes: 2
  • Medium without fixes: 1
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@SakshiKoli-CS
SakshiKoli-CS merged commit cb5c2bb into v2-dev Nov 26, 2026
7 checks passed
@SakshiKoli-CS
SakshiKoli-CS deleted the CL-8980 branch November 26, 2026 09:48
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.

3 participants