chore(npm): declare SPDX license, add author, add SECURITY.md#90
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 addsocket.yml.package.jsonlicense→ SPDXLicenseRef-Codeforerunner-SAL-0.1(was the opaque"SEE LICENSE IN LICENSE.md"). Machine-readable, matches the REUSE-styleLICENSES/layout.npm packemits no license warning. (Subscore stays non-permissive by design — expected.)package.jsonauthor: "Derek Palmer", consistent withpyproject.toml. Nofundingfield.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 SPDXlicense, the matchingLICENSES/file, andauthorconsistent withpyproject.npm pack --dry-run: no license warning;SECURITY.mdcorrectly stays out of the published tarball (repo-policy doc, not infiles).287 pytest + 11 node green.
Companion
HITL follow-ups (Socket dashboard triage, enable GitHub private vuln reporting) tracked in #86.
🤖 Generated with Claude Code