Skip to content

Commit e2959cd

Browse files
committed
docs: add commit signing and Socket.dev to CLAUDE.md and SECURITY.md
1 parent 01ae5cd commit e2959cd

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/SECURITY.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ This project is designed to handle LLM API keys, sandboxed code execution, and a
3939
- **Secret scanning** and **push protection** enabled on the repository
4040
- **Gitleaks** pre-commit hook prevents committing secrets locally + weekly CI workflow
4141

42-
### Dependency Scanning
42+
### Dependency & Supply Chain Scanning
4343

4444
- **Dependabot** monitors dependencies for known vulnerabilities (daily, uv + github-actions + docker)
4545
- **Dependency review** runs on every pull request (license allow-list, PR comment summaries)
4646
- **pip-audit** scans Python dependencies for known vulnerabilities (every PR + weekly scheduled workflow)
4747
- **npm audit** scans Node.js dependencies for known vulnerabilities (every PR, critical + high severity)
48+
- **Socket.dev** GitHub App detects supply chain attacks on PRs (typosquatting, malware, suspicious ownership changes, obfuscated code)
4849

4950
### Container & Infrastructure Security
5051

@@ -61,6 +62,7 @@ This project is designed to handle LLM API keys, sandboxed code execution, and a
6162
- All workflow actions pinned by full SHA with version comments
6263
- `permissions: {}` at workflow level with least-privilege per job
6364
- `persist-credentials: false` on all `actions/checkout` steps
65+
- **Signed commits** required on `main` via branch protection
6466

6567
### Dynamic Application Security Testing (DAST)
6668

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ web/ # Vue 3 + PrimeVue + Tailwind CSS dashboard
181181

182182
- **Commits**: `<type>: <description>` — types: feat, fix, refactor, docs, test, chore, perf, ci
183183
- **Enforced by**: commitizen (commit-msg hook)
184+
- **Signed commits**: required on `main` via branch protection — all commits must be GPG/SSH signed
184185
- **Branches**: `<type>/<slug>` from main
185186
- **Pre-commit hooks**: trailing-whitespace, end-of-file-fixer, check-yaml, check-toml, check-json, check-merge-conflict, check-added-large-files, no-commit-to-branch (main), ruff check+format, gitleaks, hadolint (Dockerfile linting)
186187
- **Pre-push hooks**: mypy type-check + pytest unit tests (fast gate before push, skipped in CI — dedicated jobs already run these)
@@ -228,6 +229,7 @@ web/ # Vue 3 + PrimeVue + Tailwind CSS dashboard
228229
- **Workflow security**: `.github/workflows/zizmor.yml` — zizmor static analysis of GitHub Actions workflows on push to main and PRs (triggers only when workflow files change), SARIF upload to Security tab on push events only (fork PRs lack `security-events: write`)
229230
- **OSSF Scorecard**: `.github/workflows/scorecard.yml` — supply chain maturity scoring on push to main + weekly schedule. SARIF upload to Security tab. Contributes to OpenSSF ecosystem data via `publish_results: true`.
230231
- **DAST**: `.github/workflows/dast.yml` — ZAP API scan against the backend OpenAPI spec on push to main + weekly schedule. Builds backend image locally, starts container, runs ZAP, uploads SARIF to Security tab. Not on PRs (too slow).
232+
- **Socket.dev**: GitHub App — supply chain attack detection on PRs (typosquatting, malware, suspicious ownership changes, obfuscated code). No config file needed, auto-comments on PRs.
231233
- **Release**: `.github/workflows/release.yml` — Release Please (Google) auto-creates a release PR on every push to main. Merging the release PR creates a git tag (`vX.Y.Z`) + GitHub Release with changelog. Tag push triggers the Docker workflow to build version-tagged images. Uses `RELEASE_PLEASE_TOKEN` secret (PAT/GitHub App token) so tag creation triggers downstream workflows (GITHUB_TOKEN cannot). Config in `.github/release-please-config.json` and `.github/.release-please-manifest.json`.
232234

233235
## Dependencies

0 commit comments

Comments
 (0)