Skip to content

docs: add the documents OpenSSF Baseline level 2 asks for - #55

Merged
cris005 merged 3 commits into
mainfrom
docs/openssf-baseline-2
Nov 24, 2026
Merged

cris005 merged 3 commits into
mainfrom
docs/openssf-baseline-2

Conversation

@cris005

@cris005 cris005 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the documentation OpenSSF Baseline level 2 requires and this repository did not have. The project already holds the Best Practices passing badge and Baseline level 1 (project 16186); 9 of the 19 level 2 requirements were met already, and these pages cover the rest.

  • docs/ARCHITECTURE.md describes the actors, each action the plugin takes, and every external interface: package exports, plugin options, the /cache-manager command, the x-cache-ttl header, the RPC contract, storage keys, the models.dev fetch and the debug log (OSPS-SA-01.01, OSPS-SA-02.01).
  • docs/SECURITY_ASSESSMENT.md lists eight risks with what the code does about each and what remains (OSPS-SA-03.01).
  • docs/GOVERNANCE.md names the roles and who has access to the repository, security advisories and npm packages (OSPS-GV-01.01, OSPS-GV-01.02).
  • docs/CONTRIBUTING.md gains a Dependencies section on how dependencies are selected, obtained and tracked (OSPS-DO-06.01), and a sentence stating that contributions are MIT-licensed under GitHub's Terms of Service, section D.6 (OSPS-LE-01.01).
  • SECURITY.md gains a Disclosure policy section: reports stay private until a fix is released, then are published as GitHub security advisories (OSPS-VM-01.01, OSPS-VM-04.01).
  • README.md links the three new pages, and CLAUDE.md lists them and adds a rule to keep the architecture and assessment pages current when a hook, an interface or the keepalive rules change.

Not in this diff

The repository's default GitHub Actions token was switched to read-only, with "Actions can approve pull requests" off (OSPS-AC-04.01). Every workflow already declared its own permissions.

Review notes

The new pages make statements on the project's behalf. Worth a careful read:

  • GOVERNANCE.md lists the noppu npm account as the owner of both packages, which is what npm owner ls shows.
  • The assessment says the maintainer, as the organization's only admin, can bypass both rulesets, so their own pull requests merge without a second approval.
  • The disclosure policy commits to publishing each fixed vulnerability as a security advisory. The only timeframe is the existing first response within a week.

No source, test or workflow file changes, and nothing is released.

Checks

bun run fmt:check, bun run lint, bun run typecheck and bun test tests/ pass locally (1297 tests). Every relative link and anchor in the changed pages resolves.

@sonarqubecloud

Copy link
Copy Markdown

@cris005
cris005 merged commit 6c67f0d into main Nov 24, 2026
3 checks passed
@cris005
cris005 deleted the docs/openssf-baseline-2 branch November 24, 2026 05:56
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.

1 participant