Commit 43f6fb0
fix: correct SARIF fix to remove entire invalid fixes entries
Previous attempts:
1. Converting invalid artifactChanges to empty arrays [] - failed with "minimum length of 1"
2. Deleting artifactChanges field - failed with "requires property artifactChanges"
Root cause: SARIF spec requires fix objects to have valid artifactChanges arrays (non-empty).
Solution: Remove entire fix entries that don't have valid artifactChanges, rather than trying to fix the field.
Validation:
- Tested locally with gosec output
- Invalid fixes (description only) → removed entirely
- Valid fixes (with artifactChanges) → preserved
- Results with no fixes → unchanged
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4f04062 commit 43f6fb0
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments