Commit fd64220
committed
fix(github-client): fetchLatestSemverTag throws instead of returning undefined when auth unavailable
getOctokit() was called outside the try/catch, so an AUTH_MISSING
throw propagated as a test failure rather than the function silently
returning undefined — the contract documented by the test's own guard.
Moved getOctokit() inside the try block.
Also explicitly passes GITHUB_TOKEN to the CI test step so integration
tests have the Actions token available regardless of runner defaults.1 parent 84aeaec commit fd64220
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | 231 | | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
0 commit comments