Commit 07d9cf8
committed
security: fix shell injection in GitHub Actions release workflow
Moved all github context interpolation from run: blocks to env:
variables. Specifically:
- github.event_name and github.event.inputs.version in version extraction
- steps.version.outputs.VERSION in multiple run: blocks
Uses intermediate env: variables so user-controlled input is never
directly interpolated in shell scripts.
Flagged by Semgrep static analysis (run-shell-injection).1 parent 032420a commit 07d9cf8
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | | - | |
49 | | - | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | | - | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
81 | | - | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| |||
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| 101 | + | |
96 | 102 | | |
97 | | - | |
98 | | - | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
| 116 | + | |
111 | 117 | | |
112 | | - | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
0 commit comments