Commit 4cfe4cd
committed
fix: reduce DEB matrix and improve Trivy SARIF upload handling
**Problem 1: Matrix Size Limit (CRITICAL)**
GitHub Actions limits matrix strategies to 256 jobs maximum.
The DEB matrix was generating ~260 jobs and failing:
- 34 exporters × 4 distros × 2 archs = ~272 jobs ❌
**Problem 2: Trivy SARIF Upload Errors**
Upload step was failing with "Path does not exist" even with
continue-on-error, generating 70 error annotations in UI.
**Solutions:**
1. **Reduced DEB distributions** (Line 97)
- Before: ubuntu-22.04, ubuntu-24.04, debian-12, debian-13 (4 distros)
- After: ubuntu-22.04, ubuntu-24.04 (2 Ubuntu LTS only)
- Result: ~34 × 2 × 2 = ~136 jobs ✅ (safe margin under 256)
- Note: Debian support can be added back when we implement
distribution-specific matrix splitting
2. **Check SARIF file existence before upload** (Line 264)
- Added check-sarif step to verify file exists
- Only upload if file is present
- Prevents "Path does not exist" errors in UI
- Cleaner logs with warning message when skipped
**Testing:**
Next full-build run should:
- ✅ Create DEB jobs successfully (under 256 limit)
- ✅ No SARIF upload errors if files are missing1 parent d377d6f commit 4cfe4cd
1 file changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
262 | | - | |
| 264 | + | |
| 265 | + | |
263 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
264 | 277 | | |
265 | 278 | | |
266 | 279 | | |
267 | 280 | | |
268 | | - | |
269 | 281 | | |
270 | 282 | | |
271 | 283 | | |
| |||
0 commit comments