Commit 5483b67
feat: add paths-ignore input; default-skip vendored/fixture content (#7)
Validators that scan content patterns must distinguish a target file from
a vendored / fixture / training-corpus file that legitimately contains
the very pattern being checked. Same architectural lesson as
hyperpolymath/hypatia#243 — that scanner had 11/11 `secret_detected`
findings turn out to be FPs in `.audittraining/`, `lib/rules/`,
`scripts/fix-scripts/`, and `test/` paths until provenance was added.
This action was firing "Missing required identity field" on every .a2ml
file in `verified-container-spec/` (a vendored project tree) consumed by
stapeln and other sibling repos. The vendored manifests have their own
identity declarations in their upstream context — flagging them here is
noise that no consumer can usefully act on.
New input:
paths-ignore: |
vendor/
vendored/
verified-container-spec/
.audittraining/
integration/fixtures/
test/fixtures/
tests/fixtures/
Newline-separated, substring match against each candidate file's path,
default-on so consumers benefit without editing every workflow. Pass an
empty string to disable.
README updated with rationale + usage. validate-a2ml.sh prints a notice
for each skipped file count so the carve-out is auditable in the action log.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent e7488b5 commit 5483b67
3 files changed
Lines changed: 81 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
58 | 71 | | |
59 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
60 | 81 | | |
61 | 82 | | |
62 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
32 | 51 | | |
33 | 52 | | |
34 | 53 | | |
| |||
50 | 69 | | |
51 | 70 | | |
52 | 71 | | |
| 72 | + | |
53 | 73 | | |
54 | 74 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
29 | 53 | | |
30 | 54 | | |
31 | 55 | | |
| |||
193 | 217 | | |
194 | 218 | | |
195 | 219 | | |
196 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
197 | 236 | | |
198 | 237 | | |
199 | 238 | | |
| |||
0 commit comments