@synkro-sh/cli 1.3.22 → 1.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bootstrap.js CHANGED
@@ -3333,7 +3333,7 @@ function writeConfigEnv(opts) {
3333
3333
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
3334
3334
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
3335
3335
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
3336
- `SYNKRO_VERSION=${shellQuoteSingle("1.3.22")}`
3336
+ `SYNKRO_VERSION=${shellQuoteSingle("1.3.23")}`
3337
3337
  ];
3338
3338
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
3339
3339
  if (safeOrgId) lines.push(`SYNKRO_ORG_ID=${shellQuoteSingle(safeOrgId)}`);
@@ -4384,8 +4384,11 @@ function getPrFiles(repo, prNumber) {
4384
4384
  async function fetchScanContext(gatewayUrl, apiKey, repo, prNumber, sha) {
4385
4385
  try {
4386
4386
  const url = `${gatewayUrl.replace(/\/$/, "")}/api/pr-scans/scan-context?repo=${encodeURIComponent(repo)}&pr_number=${prNumber}&sha=${sha}`;
4387
+ const headers = { "x-synkro-api-key": apiKey };
4388
+ const ghToken = process.env.GH_TOKEN || process.env.GITHUB_TOKEN || "";
4389
+ if (ghToken) headers["x-github-token"] = ghToken;
4387
4390
  const resp = await fetch(url, {
4388
- headers: { "x-synkro-api-key": apiKey },
4391
+ headers,
4389
4392
  signal: AbortSignal.timeout(15e3)
4390
4393
  });
4391
4394
  if (!resp.ok) return { scan_all: true };