Skip to content

ci: extend placeholder-coverage check to all processed directories#32

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

ci: extend placeholder-coverage check to all processed directories#32
dmchaledev wants to merge 1 commit into
mainfrom
claude/hopeful-knuth-0ygkiz

Conversation

@dmchaledev

Copy link
Copy Markdown
Contributor

Summary

The placeholder-coverage CI job ran customize.sh --output-dir $tmpdir, which writes customized files to $tmpdir/policies/, $tmpdir/templates/, $tmpdir/industry-variants/, and $tmpdir/docs/. But the post-run grep that asserts no core placeholders remain was scoped to $tmpdir/policies only — so unreplaced placeholders in the other three directories would silently pass CI.

Confirmed: templates/, industry-variants/, and docs/ all contain core placeholders today ([Company Name], [Date], [Security Officer], [IT Contact]) that are in-scope for customize.sh but were invisible to the CI check.

Change

One-line fix: widen the grep root from $tmpdir/policies$tmpdir.

-            "$tmpdir/policies" 2>/dev/null || true)
+            "$tmpdir" 2>/dev/null || true)

Also updated the success message to reflect the broader scope.

Test plan

  • CI placeholder-coverage job passes with the fix applied (all placeholders in templates, industry-variants, and docs are replaced by the full customize.sh flag set used in CI)
  • Intentionally removing a placeholder mapping from customize.sh and re-running CI should now fail for files outside policies/, confirming the check is active

🤖 Generated with Claude Code

https://claude.ai/code/session_01NReYztvPgEeiXKj9dbBTuk


Generated by Claude Code

The grep that validates no core placeholders remain after customize.sh
was scoped to $tmpdir/policies only. customize.sh also writes to
templates/, industry-variants/, and docs/, all of which contain
[Company Name], [Date], [Security Officer], and other core placeholders
— meaning unreplaced placeholders in those directories would pass CI
silently.

Widen the grep root from $tmpdir/policies to $tmpdir so every output
directory is covered.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NReYztvPgEeiXKj9dbBTuk
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