Commit ecf0cf4
committed
fix(bots): fail fast on failed GitHub OIDC mint in install-bot-engine
Review follow-up: the JFrog OIDC exchange only validated ACCESS_TOKEN, so a
failed ID_TOKEN mint (missing id-token:write, metadata hiccup → empty or the
string "null") was still POSTed as subject_token and surfaced one step later as
the misleading "Could not extract JFrog access token". Add an empty/null guard
right after the OIDC curl so the diagnostic points at the real cause. Fails
closed either way; this just improves the error message.
Co-authored-by: Isaac
Signed-off-by: eric-wang-1990 <e.wang@databricks.com>1 parent 5093ee1 commit ecf0cf4
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
0 commit comments