Appearance
Why It Matters
SEC377 flags path-specific GitHub Copilot instruction files when applyTo is present with the right shape but contains an invalid glob pattern.
This is useful because:
- Copilot path-specific instructions rely on
applyToto target files consistently - an invalid glob can look valid in review while silently failing to match the intended files
- this stays a strict config-contract check with no prose heuristics
Trigger Shape
- file path is
.github/instructions/*.instructions.md - frontmatter parses successfully
applyTois a string or list of strings- at least one
applyTopattern fails deterministic glob compilation
Clean Cases
applyTo: "**/*.rs"applyTo: ["**/*.rs", "**/*.ts"]- fixture/test/example copies
- files already caught by missing/invalid-shape rules instead
Example Trigger
md
---
applyTo: "[unclosed"
---Safer Example
md
---
applyTo: "**/*.rs"
---How To Fix
- replace invalid
applyTopatterns with valid globs - keep path-specific Copilot instructions on reviewed, testable file patterns