Commit 563d6aa
committed
fix(ci): pin scanner versions and disable install lifecycle scripts
SonarCloud's gate on main has been red since 2026-08-21 on
new_security_rating (C, threshold A) from four MAJOR supply-chain
findings that its new-code window sweeps in:
- release.yml and scripts/release.sh ran `npm ci` with dependency
lifecycle scripts enabled during a release build (S6505)
- security.yml installed pip and semgrep unpinned (S8544)
- security.yml resolved jscpd on demand through `npx --yes` (S6505)
Add --ignore-scripts to both release installs, pin pip/semgrep to
exact versions, and install jscpd at an exact version with lifecycle
scripts disabled before invoking it with --no-install.
Verified locally: the vite build produces identical output under
npm ci --ignore-scripts, and the rewritten jscpd invocation reports
the same 3 pre-existing clones and exits 0.1 parent db7ac81 commit 563d6aa
3 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
154 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
155 | 160 | | |
156 | 161 | | |
157 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
0 commit comments