Free, open source blog writer for Claude Code. Researches current sources, writes answer-first posts for Google and AI answers, has an independent reviewer score each one out of 100 and ships only after five delivery gates. 32 skills, 30 /blog commands, 5 agents. Active development at AI-Marketing-Hub/claude-blog; public releases ship here.
Python agent-skillsaiai-citationsai-contentai-marketingai-marketing-hubblogblog-writingclaude-codeclaude-code-skillclaude-pluginclaude-skillcontent-creationcontent-optimizationcontent-strategyeeatgeomultilingualopen-sourceseo
fix(scripts): keep local virtualenvs out of the secret scan
Agrici Daniele6c635c62564
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a90a65f..a1cb95a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Fixed+- Skip local virtualenvs (`.venv`, `venv`, `node_modules`) in the secret scan so a+ contributor's environment no longer fails it. The pinned-release installer+ test now reads the expected checkout from the tag instead of a fixed SHA.- Reject reviewer scorecards with missing, negated or contradictory P0clearance, duplicate scores/nonces/decisions, or missing decision reasons.- Enforce the required browser check in strict delivery mode, and preservediff --git a/scripts/check_secrets.py b/scripts/check_secrets.pyindex 6a02064..9152ea2 100644--- a/scripts/check_secrets.py+++ b/scripts/check_secrets.py@@ -84,6 +84,10 @@ def run_detect_secrets() -> dict[str, object]:r"^\.git/","--exclude-files",r"^\.pytest_cache/",+ # Local virtualenvs and dependency trees are not source. A contributor's+ # .venv would otherwise trip the entropy scan on vendored activate scripts.+ "--exclude-files",+ r"^(\.venv|venv|node_modules)/",]try:result = subprocess.run(@@ -161,7 +165,7 @@ def scan_forbidden_values() -> list[dict[str, object]]:if not path.is_file() or path.is_symlink():continuerel = path.relative_to(ROOT).as_posix()- if any(part in {".git", ".pytest_cache", "outputs"} for part in path.relative_to(ROOT).parts):+ if any(part in {".git", ".pytest_cache", ".venv", "venv", "node_modules", "outputs"} for part in path.relative_to(ROOT).parts):continueif path.stat().st_size > 25 * 1024 * 1024:continuediff --git a/tests/test_scripts_wave3_gate.py b/tests/test_scripts_wave3_gate.pyindex 37d66bf..9f154b4 100644--- a/tests/test_scripts_wave3_gate.py+++ b/tests/test_scripts_wave3_gate.py@@ -449,3 +449,22 @@ def test_stripe_and_slack_tokens_are_forbidden_patterns(tmp_path, monkeypatch):(tmp_path / "b.txt").write_text("tok " + "xox" + "b-1234567890-abcdefghij\n")labels = {f["type"] for f in SECRETS.scan_forbidden_values()}assert {"Stripe key", "Slack token"} <= labels+++def test_secret_scan_skips_local_virtualenvs(monkeypatch):+ """A contributor's .venv is not source and must not trip the entropy scan."""+ seen = {}++ class Done:+ returncode = 0+ stdout = '{"results": {}}'+ stderr = ""++ def fake_run(command, **kwargs):+ seen["command"] = command+ return Done()++ monkeypatch.setattr(SECRETS.subprocess, "run", fake_run)+ SECRETS.run_detect_secrets()+ excludes = [seen["command"][i + 1] for i, arg in enumerate(seen["command"]) if arg == "--exclude-files"]+ assert any(".venv" in pattern and "node_modules" in pattern for pattern in excludes)