Commit 98cce08
authored
fix: use op whoami instead of op account list for auth check (#9)
op account list doesn't work with service account tokens
(OP_SERVICE_ACCOUNT_TOKEN) — it returns non-zero because service
accounts don't have "accounts" in the traditional sense. This causes
op-exec to fail after a system restart when only the service account
token is available.
op whoami works with both interactive sessions and service account
tokens, making it the correct auth check.
Co-authored-by: jack-nsheaps[bot] <254347511+jack-nsheaps[bot]@users.noreply.github.com>1 parent 53d8d1a commit 98cce08
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
0 commit comments