Commit b5a64a3
authored
fix(ci): prevent code injection in cleanup-prerelease workflow (#174)
Move github.event.pull_request.head.ref from direct shell interpolation to environment variable to prevent script injection attacks via malicious branch names.
Fixes https://github.com/groupsky/ya-modbus/security/code-scanning/101 parent 2e85d97 commit b5a64a3
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments