-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Problem
When BugDrop is used on a private repository, the screenshot URLs embedded in issues break after a few hours.
BugDrop commits screenshots to .bugdrop/screenshots/ via the GitHub Contents API and uses the download_url from the response as the image link in the issue body. For private repos, this generates a raw.githubusercontent.com URL with a temporary ?token=... parameter that expires.
Once the token expires, the screenshot returns a 404 and the issue loses its visual context.
Steps to reproduce
- Install BugDrop on a private GitHub repository
- Submit a bug report with a screenshot
- Confirm the screenshot displays in the created issue
- Wait a few hours and revisit the issue
- The screenshot image is broken (404)
Expected behavior
Screenshots should remain visible in issues indefinitely.
Suggested fix
Instead of committing the image to the repo and linking via download_url, use GitHub's issue attachment upload mechanism which generates permanent user-attachments URLs. This would also avoid accumulating screenshot files in the repository over time.
Environment
- Private GitHub repository
- BugDrop widget v1 (
bugdrop.neonwatty.workers.dev/widget.v1.js)