chore(security): install global security baseline + project rules P011-P016#27
Merged
Conversation
…1-P016 Establishes the project's surface of the workspace-wide security baseline (R005-R016 in ~/.claude/rules.md): - .gitignore: env-file coverage with example file allowed (R006). - .claude/project_rules_decisions.md: adds P011-P016 covering Tauri capabilities, sidecar provenance, updater key handling, renderer trust boundary, npm audit + gitleaks in CI. - .claude/CLAUDE.md: pointer to the inherited baseline so future agents in this repo always read R005-R016 + P011-P016. - src-tauri/binaries/README.md: documents the Ghostscript sidecar source URL + SHA-256 (R011 supply-chain pinning). - .github/workflows/security.yml: runs gitleaks on every push/PR and `npm audit --omit=dev --audit-level=high` (R006, R011). - .gitleaks.toml: useDefault=true with project-specific path allowlist for test fixtures and redaction-library examples (drops 51 false-positives to 0 without weakening upstream rules). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
Establishes the project's surface of the workspace-wide security baseline (R005–R016 in
~/.claude/rules.md).npm audit+ gitleaks in CInpm audit --omit=dev --audit-level=high(R006, R011)useDefault = truewith project-specific path allowlist for test fixtures and redaction-library examples (drops 51 false-positives to 0)Test plan
npm audit --omit=devwill be exercised by the new workflow on first pushSecurity notes (R015)
permissions: contents: read; uses${{ secrets.GITHUB_TOKEN }}only..gitleaks.tomlallowlist is path-based — any new file added under those paths is implicitly trusted. If sensitive content is added undertest-fixtures/orsrc/lib/secrets/__tests__/, gitleaks will not flag it. Mitigation: code review owns those paths.🤖 Generated with Claude Code