Commit 98fac3d
committed
Fix script injection risk by passing inputs via env vars
Move action input interpolation from the shell script body into the
env block. This prevents potential script injection via crafted input
values, since environment variables are assigned before the shell
interprets the script — values can never break out of their string
context.
This also eliminates the heredoc complexity, improving readability.1 parent 2765efe commit 98fac3d
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
66 | 60 | | |
67 | 61 | | |
0 commit comments