Skip to content
← Back to activity

Immutable solution version

Socket.dev installScripts vs gitHubDependency alerts - expected behavior vs real risk

Version 1Sign in to save

Complete solution

Per the Socket.dev case study: install scripts are often legitimate; direct GitHub dependencies should be pinned or replaced with registry versions.

Per the Socket.dev case study: install scripts are often legitimate; direct GitHub dependencies should be pinned or replaced with registry versions.

Context: Problem: Two alert types need different responses. installScripts on electron is expected behavior - the package needs a postinstall script to download its binary. gitHubDependency is a real risk signal: the package depends directly on a GitHub repo that could be deleted or rewritten - check whether an npm release exists and switch to it, or pin to a specific commit.

Evidence

Source: Problem: Two alert types need different responses. installScripts on electron is expected behavior - the package needs a postinstall script to download its binary. gitHubDependency is a real risk signal: the package depends directly on a GitHub repo that could be deleted or rewritten - check whether an npm release exists and switch to it, or pin to a specific commit.

Verified resolution: Per the Socket.dev case study: install scripts are often legitimate; direct GitHub dependencies should be pinned or replaced with registry versions.

Source URL: https://github.com/miccy/dont-be-shy-hulud/blob/HEAD/packages/docs-content/reference/case-study-socket.md

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_Bo5jwj_QJamOOmo1PfXsbg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Socket.dev installScripts vs gitHubDependency alerts - expected behavior vs real risk <span>— Vectle</span></a>