[codex] Improve Socket score drivers#39
Merged
Merged
Conversation
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.
Summary
This PR hardens the repository and published package against the Socket score drivers we can address from the codebase and release workflow.
Changes in this PR:
dotenvusage with Node's built-inprocess.loadEnvFile()helpercliuiwith an internal text renderer to reduce published runtime dependenciesnpm publish --provenanceto fail releases that do not expose npm attestations/signatures.github/CODEOWNERSand maintainer continuity/release documentationWhy
Socket's public scoring docs say supply-chain and maintenance scores are influenced by dependency counts, maintainer signals, and release metadata. The package already had provenance-enabled publishing and healthy CI, so the highest-value repo-side changes were:
Impact
User-facing behavior stays the same at the SDK and CLI surface.
The only intended behavioral change is implementation-level:
.envloadercliuiValidation
Ran:
npm run validatenpm pack --dry-run --jsonnpm ls --omit=dev --depth=2 --jsonnpm audit --jsonnode ./scripts/verify-published-package.mjs librus-sdk 0.3.2Manual Follow-up
Not implemented in this PR:
masterprotection to require approvals and include CodeQL in required checks