mirror of
https://github.com/1Password/load-secrets-action.git
synced 2026-06-21 22:29:19 +00:00
Add token to request
This commit is contained in:
@@ -201,7 +201,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
url="${OP_CONNECT_HOST}/health"
|
url="${OP_CONNECT_HOST}/health"
|
||||||
for i in $(seq 1 12); do
|
for i in $(seq 1 12); do
|
||||||
sync_status=$(curl -sf "$url" | jq -r '.dependencies[] | select(.service=="sync") | .status // empty')
|
sync_status=$(curl -sf -H "Authorization: Bearer $OP_CONNECT_TOKEN" "$url" | jq -r '.dependencies[] | select(.service=="sync") | .status // empty')
|
||||||
if [ "$sync_status" = "ACTIVE" ]; then
|
if [ "$sync_status" = "ACTIVE" ]; then
|
||||||
echo "Connect sync is ready"
|
echo "Connect sync is ready"
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user