Skip to content

Commit a74c936

Browse files
committed
ugh
1 parent d6a49e2 commit a74c936

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,11 @@ jobs:
203203
echo "event=${{ github.event_name }}"
204204
echo "head=${{ github.event.pull_request.head.repo.full_name }}"
205205
token_json=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
206-
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=sts.amazonaws.com")
206+
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=sts.amazonaws.com" || true)
207+
if [ -z "$token_json" ]; then
208+
echo "OIDC token missing"
209+
exit 0
210+
fi
207211
python - <<'PY'
208212
import base64,json,sys
209213
token_json = sys.stdin.read()

0 commit comments

Comments
 (0)