Skip to content

ci: broaden placeholder-coverage check to all customize.sh output dirs#39

Open
dmchaledev wants to merge 1 commit into
mainfrom
claude/hopeful-knuth-eyr2te
Open

ci: broaden placeholder-coverage check to all customize.sh output dirs#39
dmchaledev wants to merge 1 commit into
mainfrom
claude/hopeful-knuth-eyr2te

Conversation

@dmchaledev

Copy link
Copy Markdown
Contributor

Summary

scripts/customize.sh customizes markdown files under four directories (policies/, templates/, industry-variants/, docs/ — see its TARGET_FILES definition), but the CI placeholder-coverage job only asserted that no core placeholders ([Company Name], [Security Officer], etc.) remained in policies/ after a full run.

I verified that templates/, industry-variants/, and docs/ also contain these same core placeholders today (e.g. industry-variants/healthcare-hipaa-overlay.md, templates/incident-forms/breach_notification_template.md, docs/framework_mapping.md), so a future regression in substitution logic for those directories — a typo in a placeholder, a new placeholder added to a template but not wired into customize.sh's sed args, etc. — would currently pass CI silently because the check never looks there.

This PR widens the CI assertion to scan all four directories customize.sh actually writes to, matching the tool's real surface area.

  • No behavior change to customize.sh itself — this only strengthens the CI regression test.
  • Confirmed the current repo content passes the widened check (no leftover placeholders in any of the four directories after a full --company/--date/.../--output-dir run).

Test plan

  • Ran scripts/customize.sh locally with all flags set and --output-dir, then applied the new (broadened) grep check against policies/, templates/, industry-variants/, and docs/ in the output — passes with no remaining placeholders.
  • shellcheck scripts/customize.sh still passes (script unchanged).
  • CI run on this PR (shellcheck + placeholder-coverage jobs) — will confirm green once triggered.

Generated by Claude Code

customize.sh customizes markdown under policies/, templates/,
industry-variants/, and docs/ (per TARGET_FILES), but the CI
placeholder-coverage job only asserted no leftover placeholders in
policies/. A future regression that broke substitution in the other
three directories (which also contain core placeholders like
[Company Name] and [Security Officer]) would pass CI silently.
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.

2 participants