Skip to content
This repository was archived by the owner on Jul 4, 2026. It is now read-only.

fix(whatsapp): switch baileys from git dep to npm release - #5

Closed
kingsleydon wants to merge 1 commit into
mainfrom
fix/whatsapp-bridge-baileys-npm
Closed

fix(whatsapp): switch baileys from git dep to npm release#5
kingsleydon wants to merge 1 commit into
mainfrom
fix/whatsapp-bridge-baileys-npm

Conversation

@kingsleydon

Copy link
Copy Markdown

Summary

  • Switch @whiskeysockets/baileys from git-pinned (WhiskeySockets/Baileys#01047de...) to npm release (^7.0.0-rc.9)
  • Add protobufjs override (>=7.5.5) to fix 3 critical vulnerabilities

Problem

The git dependency requires cloning the full Baileys repo + running npm install --include=dev for git dep preparation. In CVM containers this takes 4+ minutes and exceeds the 120-second timeout in hermes whatsapp, making WhatsApp setup impossible.

Result

Before After
Install time 4+ min (timeout) ~20s
npm audit 3 critical 0
protobufjs old (vuln) 8.0.1

Verified on two production deployments (k3s-prod4 and Phala CVM).

🤖 Generated with Claude Code

The git-pinned baileys dependency requires cloning the full repo and
running git dep preparation at install time, which takes 4+ minutes
and times out in CVM environments (120s limit in hermes cli).

Switch to the npm-published release (^7.0.0-rc.9) which installs in
~20 seconds via normal npm registry download.

Also adds protobufjs override (>=7.5.5) to fix 3 critical
vulnerabilities (GHSA-xq3m-2v4x-88gg: arbitrary code execution).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

⚠️ Supply Chain Risk Detected

This PR contains patterns commonly associated with supply chain attacks. This does not mean the PR is malicious — but these patterns require careful human review before merging.

⚠️ WARNING: Dependency manifest files modified

Changes to dependency files can introduce new packages or change version pins. Verify all dependency changes are intentional and from trusted sources.

Files:

scripts/whatsapp-bridge/package.json

Automated scan triggered by supply-chain-audit. If this is a false positive, a maintainer can approve after manual review.

@kingsleydon
kingsleydon deleted the fix/whatsapp-bridge-baileys-npm branch April 17, 2026 00:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant