/oss-skills:supply-chain-securityfrom oss-skills
Hardens open-source projects against supply-chain attacks: SECURITY.md, private vulnerability reporting, CVE response, GitHub Actions permission hardening, dependency pinning, SBOM/provenance, release signing, and OpenSSF Scorecard improvements.
Ships in oss-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your project's security posture affects everyone downstream. A popular package is a high-value target precisely because compromising it is cheaper than compromising its users individually.
Ranked by observed frequency in actual incidents, not by drama:
pull_request_target executing fork code.postinstall scripts, setup.py executing at install,
compromised build servers.Note what is not at the top: vulnerabilities in your own code. Those matter, but the supply chain is where the leverage is.
Do all of these. Together they take an afternoon and remove most of the realistic risk.
Accounts
Repository
main, including for admins.git config commit.gpgsign true; Sigstore
gitsign avoids GPG key management entirely).CI (see also ci-pipelines)
permissions:
contents: read # default-deny at the top of every workflow
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Tags are mutable. A compromised action with @v3 reaches every repo instantly —
this has happened, more than once, at scale. Use Dependabot to keep pinned SHAs
fresh so pinning does not mean staleness.pull_request_target + checkout of PR head.GITHUB_TOKEN to read-only by default in org settings.Dependencies (see dependency-hygiene)
npm ci / pip install -r requirements.txt --require-hashes / cargo --locked.npm ci --ignore-scripts).# Security Policy
## Supported Versions
| Version | Supported |
|---------|-----------|
| 4.x | Yes |
| 3.x | Security fixes until 2026-12-31 |
| < 3.0 | No |
## Reporting a Vulnerability
Report privately via [GitHub Security Advisories](../../security/advisories/new)
or email [email protected].
Please do not open a public issue for security problems.
- Acknowledgement within **48 hours**
- Assessment within **7 days**
- Fix or mitigation plan within **30 days** for high severity
- We credit reporters in the advisory unless you prefer otherwise
## Scope
In scope: the published package, the CLI, the default configuration.
Out of scope: issues requiring an already-compromised host, denial of service
via deliberately malformed input to a debug-only tool, dependencies (report upstream).
Only promise timelines you will meet. A missed 48-hour promise is what turns a cooperative researcher into a public disclosure.
If a reporter is hostile or demands a bounty you have not offered, stay factual and keep to the process. If they publish early, do not escalate publicly; ship the fix.
For anything widely installed, make the build verifiable:
npm publish --provenance # links artifact → repo → workflow run
# PyPI: attestations via trusted publishing (pypa/gh-action-pypi-publish)
cosign sign-blob --yes dist/tool.tar.gz # Sigstore, keyless via OIDC
gh attestation verify dist/tool.tar.gz --repo owner/repo
Publish alongside a release: SHA256SUMS, signatures, and an SBOM
(syft . -o spdx-json, or cargo sbom). Also document the verification command in
your install docs — an unverifiable signature nobody knows how to check provides no
security, only the appearance of it.
# .github/workflows/scorecard.yml — weekly, publishes results to the Security tab
- uses: ossf/scorecard-action@v2
with: { results_file: results.sarif, results_format: sarif, publish_results: true }
Treat the score as a checklist, not a target. The checks that actually reduce risk:
Branch-Protection, Token-Permissions, Pinned-Dependencies, Dangerous-Workflow,
Signed-Releases, Code-Review. The ones that measure process theater more than
safety: CII-Best-Practices, Contributors, Packaging. Do not contort the project
to raise a number.
Escalate scrutiny sharply when a PR touches:
.github/workflows/** — especially permissions, new actions, or new triggerspackage.json scripts, setup.py, build.rs, Makefile install targets.npmrc, .pypirc, credentials handling, anything reading environment variablesSpecific tells worth knowing: obfuscated payloads assembled from string fragments, code that behaves differently under CI environment variables, a dependency version bump paired with an unrelated build script change, and a first-time contributor whose PR touches only CI configuration.
Ask about anything you do not understand. "I don't follow what this line does — can you explain?" is a complete and sufficient review comment, and a legitimate contributor will answer it happily.
The scenario behind several major incidents: a burned-out maintainer hands publishing rights to a helpful stranger.
If you are handing off: verify identity beyond a GitHub account, transfer gradually (commit rights → review rights → publish rights), keep 2FA requirements in place, and announce the change publicly. If you are stepping away entirely and nobody has earned that trust, archive the project and say so in the README. An archived project is safe; an abandoned one with live publishing rights is a liability.
If you are asked to take over a project: expect and welcome scrutiny.
pull_request_target with fork checkout.What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/api-designDesign public interfaces for libraries and tools that other people depend on. Use when designing or reviewing a public API surface, deciding what to export, naming functions and CLI flags, adding configuration options, planning deprecations, or when the user asks "is this a good API" or "how do I change this without breaking users". Covers minimal surface area, error design, async and extension patterns, CLI ergonomics, config precedence, and stability guarantees. Also use before a 1.0 release to freeze the interface./ci-pipelinesDesign continuous integration for an open-source repository. Use when setting up GitHub Actions from scratch, when CI is slow or flaky, when adding a build matrix across OS and language versions, when configuring caching, or when handling PRs from forks that need secrets. Covers workflow structure, concurrency and cancellation, caching strategy, required checks and branch protection, self-hosted runner risks, and keeping CI cheap. Also use for "our CI takes 40 minutes" or "why is CI failing on forks"./code-reviewReview a pull request the way a good open-source maintainer does. Use when reviewing an incoming PR, when the user asks "review this PR" or "is this ready to merge", when triaging a stale PR queue, or when writing review feedback to an external contributor. Covers what to check and in what order, severity levels, phrasing feedback so people come back, handling large or unwanted PRs, first-time contributors, AI-generated submissions, and closing PRs kindly. Complements the built-in /code-review command by adding the maintainer and community dimension.npx claudepluginhub the-open-agent/oss-skills --plugin oss-skills