Skip to content

Commit 6ba6206

Browse files
committed
ci(drift-check): exclude .gitignore + propagate.mjs from scan
The gitignore block (Layer 3) enumerates forbidden patterns to prevent file commits; propagate.mjs (Layer 4 in aeoess_web) hard-codes them for its final-scan function. Both are legitimate self-references and must be excluded from the CI scan, matching the local hook's EXEMPT_FILES behavior.
1 parent 77bec60 commit 6ba6206

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/check-drift.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ jobs:
4242
)
4343
4444
# Files we deliberately allow these patterns in (the workflow itself,
45-
# any scripts that intentionally enumerate the patterns to check for).
46-
EXCLUDE_PATHS='(\.github/workflows/check-drift\.yml|scripts/check-drift\.sh)'
45+
# the gitignore block listing the same patterns to keep files out,
46+
# the propagate.mjs final-scan source, any other script that
47+
# intentionally enumerates the patterns to check for them).
48+
EXCLUDE_PATHS='(\.github/workflows/check-drift\.yml|\.gitignore|scripts/check-drift\.sh|scripts/propagate\.mjs)'
4749
4850
violations=0
4951
for pat in "${PATTERNS[@]}"; do

0 commit comments

Comments
 (0)