Commit 344abd6
security: fix vulnerabilities in release skill
Fixed security issues identified in release automation:
1. Symlink attack prevention:
- Replaced predictable /tmp/pub-dry-run.log with mktemp
- Added trap to cleanup temporary file on exit
- Prevents attacker from creating symlink to overwrite sensitive files
2. Authentication validation:
- Added GitHub CLI authentication check before release operations
- Prevents partial release if gh auth fails mid-execution
3. Variable expansion safety:
- Fixed PRERELEASE variable to use parameter expansion syntax
- Prevents word splitting issues
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 4ee7ad4 commit 344abd6
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | | - | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
| |||
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
62 | | - | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
0 commit comments