Commit 73eaa00
ci(release): fail fast when the winget PAT is expired or revoked
The v0.18.2 release run (29567349939) failed 14 minutes into GoReleaser
with 401 Bad Credentials on the winget publisher — after the draft
release was created and the Homebrew/Scoop PRs were opened — because
WINGET_GITHUB_TOKEN (a 30-day PAT set on 2026-06-17) expired that
morning, minutes after the v0.18.1 run squeaked through.
Add a preflight job that validates the token against the
bomly-dev/winget-pkgs fork before validate/release run, failing within
seconds with an actionable rotation message, and emits a warning when
the token is within 14 days of its expiration date so the next expiry
is caught before it breaks a release.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 96de352 commit 73eaa00
1 file changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
17 | 55 | | |
18 | 56 | | |
19 | 57 | | |
| |||
36 | 74 | | |
37 | 75 | | |
38 | 76 | | |
39 | | - | |
| 77 | + | |
40 | 78 | | |
41 | 79 | | |
42 | 80 | | |
| |||
0 commit comments