Extracts a ready-to-inject environment variable string from a raw MJ: Credentials.Values payload.
Enforces per-user isolation on 3LO credentials (ownerUserId must match options.ContextUserId).
If rawValues is a JSON object with appId, installationId, and privateKey, mints a
short-lived GitHub App installation token (ghs_...) so the RSA private key never enters the sandbox.
If rawValues is a JSON object with a known secret field (token, apiKey, accessToken, etc.)
or a single string property, returns that scalar string.
If rawValues is a plain non-JSON string, returns the trimmed string.
Extracts a ready-to-inject environment variable string from a raw
MJ: Credentials.Valuespayload.ownerUserIdmust matchoptions.ContextUserId).rawValuesis a JSON object withappId,installationId, andprivateKey, mints a short-lived GitHub App installation token (ghs_...) so the RSA private key never enters the sandbox.rawValuesis a JSON object with a known secret field (token,apiKey,accessToken, etc.) or a single string property, returns that scalar string.rawValuesis a plain non-JSON string, returns the trimmed string.