Commit e173dd4
ci: mark deliberate secret-shaped test fixtures for rust-secrets (#81)
standards' `rust-secrets` job becomes **blocking outside `./src`** on
**2026-08-21** (warn-first window from standards#518).
The lines tagged here are **genuine matches on genuine secret-shaped
literals** — they are test data, not credentials. So they take an
explicit, auditable per-line pragma rather than a pattern loophole that
would weaken the gate for every repo in the estate.
```rust
// scanner-allow: rust-secrets
```
## Why a pragma and not a pattern change
standards#523 already tightens the patterns to require an assignment
**directly to a string literal** of length ≥ 8, which removes the real
false positives estate-wide (lookups, path joins, prose). What remains
here genuinely *is* an assignment of a secret-shaped literal — it just
happens to be fixture data. Loosening the pattern to hide it would blind
the gate everywhere.
## Fixture integrity
Where the pragma sits **outside** the `r#"…"#` raw string (after the
closing quote/comma) it is an ordinary Rust comment and the fixture
content is **byte-identical** — the tests exercise exactly the same
data.
Where it sits **inside** a multi-line fixture, it is a JS-style comment
within fake content and does not change what the test asserts.
## Verified
`rust-secrets`, extracted from standards' shipping YAML, exits **0** on
this tree with `RUST_TODAY=2026-09-01` — i.e. after the cutoff, when the
check is blocking.
## Scope
**Only Rust sources.** The secret-scanner re-pin is deliberately not
bundled: this repo is one of the 22 the estate sweep flagged, where
gitleaks findings survive the shared baseline, and moving it onto the
real gate needs its own triage.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5b325b1 commit e173dd4
5 files changed
Lines changed: 7 additions & 7 deletions
File tree
- benches
- src
- contract/src
- oracle/src
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
1568 | | - | |
| 1568 | + | |
1569 | 1569 | | |
1570 | 1570 | | |
1571 | 1571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | | - | |
| 732 | + | |
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
| 769 | + | |
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | | - | |
| 1051 | + | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | 1054 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
0 commit comments