Repository navigation
Commit bf87a8a
committed
action: validate the version input and accept a leading v
A version written as a tag, such as v1.98.10, was passed through
unchanged. The action then logged "Resolved Tailscale version:
v1.98.10" and requested tailscale_v1.98.10_amd64.tgz.sha256, which
returns 404, and on macOS ran "git checkout vv1.98.10".
Strip one leading "v" from the version input and reject anything that
is not X.Y.Z, "latest" or "unstable" with an error that names the
value and the accepted forms. The check runs in getInputs, so the
macOS cache check, validateAuth and resolveVersion all see the
normalized value.
Fixes #316
Signed-off-by: abhiramshaji-cyber <write4abhiram@gmail.com>1 parent 99a8333 commit bf87a8a
2 files changed
Lines changed: 25 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
290 | 303 | | |
291 | 304 | | |
292 | 305 | | |
| |||
0 commit comments