Commit 5d0a0d2
authored
fix: prevent command injection in release workflow (#442)
* fix: prevent command injection in release workflow
Mitigate remote code execution in release-build.yml where unsanitized user input could execute arbitrary commands and expose secrets.
- Add input validation for semantic versioning format
- Use environment variables instead of direct interpolation
* address code review feedback.1 parent daf394e commit 5d0a0d2
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | | - | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
| 39 | + | |
33 | 40 | | |
34 | | - | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
0 commit comments