Repository navigation
docs: security policy rewrite + supply-chain security guide #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| --- | ||
| title: Security | ||
| sidebar_label: Security | ||
| sidebar_position: 10 | ||
| --- | ||
|
|
||
| # Security | ||
|
|
||
| How Bestax protects its supply chain, how you can verify what you install, and | ||
| where to report a vulnerability. | ||
|
|
||
| ## What you install is what we built | ||
|
|
||
| Both published packages — `@allxsmith/bestax-bulma` and `create-bestax` — are | ||
| released with **npm provenance**: every version carries a signed attestation | ||
| generated at publish time that links the tarball on the registry to the exact | ||
| source commit and the public CI run that built it. Releases authenticate to | ||
| npm via **OIDC trusted publishing** (short-lived, per-run tokens), so there is | ||
| no long-lived npm token that could leak and be used to push a rogue release. | ||
|
|
||
| Only the **latest release line** of each package receives security fixes | ||
| (currently bestax-bulma 5.x and create-bestax 3.x). Releases are fully | ||
| automated from `main` via semantic-release, so the newest published version is | ||
| always the patched one — staying current is the supported posture. See | ||
| [SECURITY.md](https://github.com/allxsmith/bestax/blob/main/SECURITY.md) for | ||
| the full policy. | ||
|
|
||
| ## Verify it yourself | ||
|
|
||
| - **Provenance on npmjs.com** — the package pages for | ||
| [`@allxsmith/bestax-bulma`](https://www.npmjs.com/package/@allxsmith/bestax-bulma) | ||
| and [`create-bestax`](https://www.npmjs.com/package/create-bestax) show a | ||
| _Provenance_ section linking each version to its source commit and build. | ||
| - **`npm audit signatures`** — run it in your project to check registry | ||
| signatures and provenance attestations for every package in your tree, | ||
| Bestax included. | ||
| - **Lockfiles** — commit your lockfile and install with a frozen/ci install | ||
| (`npm ci`, `pnpm install --frozen-lockfile`) so your builds resolve exactly | ||
| what you reviewed. Bestax's own CI does the same. | ||
|
|
||
| ## How the repository is protected | ||
|
|
||
| The monorepo applies defense-in-depth against supply-chain attacks: | ||
|
|
||
| - **Dependency install scripts are blocked by default.** pnpm only runs | ||
| install/postinstall scripts for an explicit allow-list of native builders — | ||
| a compromised transitive dependency can't execute code at install time. | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| - **A 3-day dependency cooldown.** Versions published less than 3 days ago | ||
| refuse to install, which defeats the common pattern where a hijacked | ||
| package's malicious release is yanked within hours. | ||
| - **Isolated `node_modules`.** pnpm's isolated linker makes undeclared | ||
| (phantom) dependencies fail loudly instead of silently resolving. | ||
| - **Frozen-lockfile CI.** Build and release jobs install with | ||
| `--frozen-lockfile`; the only exception is the React 18/19 compatibility | ||
| matrix, which deliberately re-resolves React for testing and never | ||
| publishes. | ||
| - **SHA-pinned GitHub Actions.** Every third-party action is pinned to a full | ||
| commit SHA, so a moved tag can't inject code into the pipeline. | ||
| - **CodeQL, dependency review, and Dependabot.** Code scanning covers the | ||
| TypeScript sources and the workflow files themselves; a dependency-review | ||
| gate blocks PRs that introduce dependencies with known advisories; grouped | ||
| Dependabot PRs keep the tree current on a weekly cadence. | ||
|
|
||
| ## Reporting a vulnerability | ||
|
|
||
| Please report privately — don't open a public issue: | ||
|
|
||
| - Email [security@bestax.io](mailto:security@bestax.io), or | ||
| - Use GitHub's private reporting: **Security → Advisories → Report a | ||
| vulnerability** on the | ||
| [repository](https://github.com/allxsmith/bestax/security). | ||
|
|
||
| You'll get an acknowledgment within 48 hours and triage within 7 days; the | ||
| full disclosure process is in | ||
| [SECURITY.md](https://github.com/allxsmith/bestax/blob/main/SECURITY.md). | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.