Commit 941879f
fix(rf-cfjc): action.yml jq parser handles wrapped JSON shape
rafter ≥0.7.0 (since rf-0pch, 2026-04-27) wraps scan results as
{_note, scan_mode, triage_applied, results: [...]} instead of a bare
array. The composite action's count query [.[].matches[]] errored on
the new shape and silently fell through to "0", causing the Test
Composite Action 'detect secrets in fixture' job to fail with
"expected findings > 0, got 0" — even though the scanner correctly
detected the AKIA fixture.
Use a type-aware query that handles both the wrapped object (current)
and the bare array (older pinned versions).
Verified against both shapes locally; CI run #25598398886 log shows
the scanner already emits the correct match.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 2205bfa commit 941879f
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | | - | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
0 commit comments