Skip to content

chore(npm): declare SPDX license, add author, add SECURITY.md#90

Merged
derek-palmer merged 1 commit into
mainfrom
feat/socket-metadata-and-security-md
May 30, 2026
Merged

chore(npm): declare SPDX license, add author, add SECURITY.md#90
derek-palmer merged 1 commit into
mainfrom
feat/socket-metadata-and-security-md

Conversation

@derek-palmer
Copy link
Copy Markdown
Owner

Closes #85.

What

Socket.dev profile hardening — the cheap, real wins from the triage + grill. Capability alerts and the non-OSI License subscore are structural and accepted (see docs/adr/0002-source-available-license-over-socket-score.md); this PR does not relicense, touch installer capabilities, add a CI gate, or add socket.yml.

  1. package.json license → SPDX LicenseRef-Codeforerunner-SAL-0.1 (was the opaque "SEE LICENSE IN LICENSE.md"). Machine-readable, matches the REUSE-style LICENSES/ layout. npm pack emits no license warning. (Subscore stays non-permissive by design — expected.)
  2. package.json author: "Derek Palmer", consistent with pyproject.toml. No funding field.
  3. SECURITY.md: package-capabilities rationale (why an installer legitimately needs network/filesystem/process access) + GitHub private vulnerability reporting channel.

Tests (TDD)

  • tests/test_package_metadata.py — asserts the SPDX license, the matching LICENSES/ file, and author consistent with pyproject.
  • npm pack --dry-run: no license warning; SECURITY.md correctly stays out of the published tarball (repo-policy doc, not in files).
  • Package Contents Inspector still green.

287 pytest + 11 node green.

Companion

HITL follow-ups (Socket dashboard triage, enable GitHub private vuln reporting) tracked in #86.

🤖 Generated with Claude Code

Socket.dev profile hardening (cheap, real wins; capability alerts and the
non-OSI License subscore are structural and accepted — see ADR-0002):

- package.json license → SPDX LicenseRef-Codeforerunner-SAL-0.1 (was the
  opaque "SEE LICENSE IN LICENSE.md"); machine-readable, matches the
  REUSE-style LICENSES/ layout. npm pack emits no license warning.
- package.json author "Derek Palmer", consistent with pyproject.
- SECURITY.md: package-capabilities rationale (why an installer needs
  network/filesystem/process access) + GitHub private vulnerability
  reporting channel.

Closes #85
@derek-palmer derek-palmer merged commit 0542703 into main May 30, 2026
12 checks passed
@derek-palmer derek-palmer deleted the feat/socket-metadata-and-security-md branch May 30, 2026 14:26
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.

Socket score: declare SPDX license, add author, add SECURITY.md

1 participant