Repository navigation
Release v1.6.1 — source map CI upload - #305
Conversation
…-jul9 Sync main into develop (Jul 9)
Co-authored-by: Cursor <[email protected]>
feat: add GitHub Action for source maps upload
Allow POST /api/project/source-maps via project API key so release workflows no longer need dashboard session cookies. Update the upload GitHub Action and docs accordingly. Closes #302 Co-authored-by: Cursor <[email protected]>
…ey-auth feat(api): API key auth for source map CI uploads
Source map GitHub Action and API key CI upload auth. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ee14bb1. Configure here.
| const files = findFiles('${{ inputs.artifact_path }}'); | ||
| if (files.length === 0) { | ||
| console.log('No source maps found to upload.'); | ||
| return; |
There was a problem hiding this comment.
Empty maps still pass CI
Medium Severity
When the action finds no .map files under artifact_path, it logs a message and returns without failing the step. Release workflows can show a green upload job even though no maps reached the API, so production stacks stay unsymbolicated until someone notices.
Reviewed by Cursor Bugbot for commit ee14bb1. Configure here.
| const payload = JSON.stringify({ | ||
| app: '${{ inputs.app }}', | ||
| release: '${{ inputs.release }}', | ||
| bundle_url: bundleUrl, |
There was a problem hiding this comment.
Input quotes break inline script
Medium Severity
Workflow inputs such as app, release, and base_url are pasted into the embedded node -e script inside single-quoted JavaScript strings. An apostrophe or other unescaped character in those values breaks the generated script or corrupts the payload before any upload runs.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit ee14bb1. Configure here.
| // 2. Remove .map to get the original JS path | ||
| const jsPath = relativePath.replace(/\.map$/, ''); | ||
| // 3. Build the full URL | ||
| const bundleUrl = \`\${{ inputs.base_url }}/\${jsPath}\`; |
There was a problem hiding this comment.
Windows paths break bundle URLs
Low Severity
path.relative can emit backslashes on Windows runners, and those are concatenated into bundle_url unchanged. Stack frames and symbolication matching expect URL path segments with forward slashes, so uploads from Windows CI may never match runtime bundle URLs.
Reviewed by Cursor Bugbot for commit ee14bb1. Configure here.


Summary
Promote v1.6.1 (patch) to production:
.github/actions/upload-source-mapsfor CI uploads (#253)POST /api/project/source-mapsaccepts project API keys for CI uploads; GitHub Action usesapi_keyinput (#304)Version
1.6.1 (patch) — backward-compatible CI tooling and API auth enhancement.
Database
No new migrations in this release.
Test plan
pnpm lint && pnpm test && pnpm buildlocallybuild,Cursor Bugbot,maintainer-review)curl https://api.telemetry-tracker.com/healthMade with Cursor