Commit 10f3a97
committed
fix: add explicit support for prerelease tags while maintaining security
- Keep secure numeric-only patterns (rejecting unsafe CodeRabbit suggestion v*.*.*)
- Add explicit patterns for common prerelease formats:
- v1.2.3-rc1, v1.2.3-rc2 (release candidates)
- v1.2.3-beta.1, v1.2.3-beta.2 (beta releases)
- v1.2.3-alpha.1, v1.2.3-alpha.2 (alpha releases)
- Maintain backwards compatibility with existing patterns
- General v[0-9]+.[0-9]+.[0-9]+-* pattern still covers other formats
This ensures -rc1 support while preventing dangerous patterns like v*.*.*
that could match malicious strings like vMALICIOUS.CODE.INJECTION-hack.1 parent 61da4b4 commit 10f3a97
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
0 commit comments