mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 23:12:30 +02:00
Three test changes in response to the round-1 review:
1. **Add quoted-write-all coverage** (cubic P0 follow-up).
Two new cases assert the regex now matches the double-quoted and
single-quoted YAML forms of `permissions: "write-all"`:
- `rejects double-quoted permissions: "write-all"`
- `rejects single-quoted permissions: 'write-all'`
Both fixtures trigger only the persist-credentials gate, so they
exercise the WRITE_ALL_PATTERN OR-clause in isolation.
2. **Add expression+ref dedup coverage** (greptile P2 follow-up).
`emits a single violation when both expressionPattern and refPattern
match the same step` — uses `refs/pull/${{ … head.sha }}/merge` as
the fixture (which matches both patterns) and counts ERROR lines for
the `pull_request_target` rule, asserting exactly one. Re-introducing
the duplicate-push bug would re-fail this test immediately.
3. **Drop the `npm ci without --ignore-scripts under write-all` test**
(greptile P2). That test happened to pass under the previous
`--ignore-scripts` regex, but `UNSAFE_INSTALL_PATTERNS` (added in
`
|
||
|---|---|---|
| .. | ||
| agent-instruction-safety.test.js | ||
| agent-yaml-surface.test.js | ||
| catalog.test.js | ||
| code-reviewer-false-positive-guard.test.js | ||
| codex-skill-surface.test.js | ||
| command-registry.test.js | ||
| mle-workflow-coverage.test.js | ||
| no-personal-paths.test.js | ||
| scan-supply-chain-iocs.test.js | ||
| supply-chain-advisory-sources.test.js | ||
| supply-chain-watch-workflow.test.js | ||
| validate-workflow-security.test.js | ||
| validators.test.js | ||