Commit 50c1de1
committed
fix(ci): unblock daily pipeline preflight + suppress gitleaks false positive
Two unrelated CI failures, fixed together:
1. Daily Trading Pipeline preflight (broken since 2026-04-25)
The secret-file permissions check added in a6ecfe7 requires
data/trading_state.db at 0o600. The "Restore state from trading-data
branch" step uses git checkout, which restores files at 0o644.
Result: preflight failed every run, skipping position_manager,
screener, watchlist, and momentum (each gated on
steps.preflight.outcome == 'success'). 4 failed runs today; last
green was 2026-04-24.
Fix: chmod 600 the restored db before preflight runs. Keeps the
safety check honest on local/macOS while matching reality on the
ephemeral GHA runner.
2. Gitleaks scheduled scan
generic-api-key (entropy 3.55) matches the literal "key:" in a
Python comment in tests/test_momentum_strategy.py at commit
6eff1eb. No real secret. Allowlisted by fingerprint via
.gitleaksignore since the comment lives in commit history and
can't be suppressed by editing the working tree.1 parent 5a9427f commit 50c1de1
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments