Skip to content

fix: gitleaks keywords, semgrep multiline, variant, docs (audit M2/M5/L4/L6/L7) - #51

Merged
emmanuelgjr merged 1 commit into
mainfrom
fix/audit-packs-docs
Jul 18, 2026
Merged

fix: gitleaks keywords, semgrep multiline, variant, docs (audit M2/M5/L4/L6/L7)#51
emmanuelgjr merged 1 commit into
mainfrom
fix/audit-packs-docs

Conversation

@emmanuelgjr

Copy link
Copy Markdown
Contributor

Batch of pack/doc/script audit fixes.

  • M2: gitleaks keyword prefilter dropped AZURE_OPENAI_KEY/GCP_SERVICE_ACCOUNT_KEY/AWS_ACCESS_KEY_ID — added key; verified 3/3 now caught.
  • L7: Semgrep export prepends (?m) to line-anchored patterns (P04.4) so ^ matches any line.
  • M5: wrapped the remaining Claude-Code-isms (Grep-tool output_mode, 'parallel in Claude Code') in cc-only markers → the tool-neutral variant body now has 0 such references.
  • L6: dsgai-secret-scan.sh probes for PCRE2 and skips loudly instead of failing open.
  • L4: README documents requires_nearby.pattern.

shellcheck clean; semgrep+variant --check in sync; 24 pass.

…ok probe (audit M2/M5/L4/L6/L7)

- M2: gitleaks keyword prefilter dropped AZURE_OPENAI_KEY / GCP_SERVICE_ACCOUNT_KEY
  / AWS_ACCESS_KEY_ID (none contained a listed keyword). Add 'key' — verified all
  three now caught. The recommended path is no longer weaker than the fallback.
- L7: the Semgrep export now prepends (?m) to line-anchored patterns (P04.4) so
  matches on any line, not just file start, under whole-file pattern-regex.
- M5: wrap the remaining Claude-Code-isms (the Grep-tool output_mode sentence, the
  'parallel scans in Claude Code' timing) in cc-only markers; the generated
  tool-neutral variant now has zero 'Grep tool' / CC-parallel references in its body.
- L6: dsgai-secret-scan.sh probes for PCRE2 support and skips loudly instead of
  failing open (a stripped ripgrep previously let commits pass silently).
- L4: rules/README documents the requires_nearby 'pattern' key added in PR-11.

shellcheck clean; semgrep + variant --check in sync; 24 pass; gitleaks 3/3.
@emmanuelgjr
emmanuelgjr merged commit 2a8e328 into main Jul 18, 2026
9 checks passed
@emmanuelgjr
emmanuelgjr deleted the fix/audit-packs-docs branch July 18, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant