Skip to content

Host screenshot diffs via GitHub's attachment API, drop own server - #849

Merged
hannesa2 merged 1 commit into
masterfrom
GitHub-user-attachments-API
Oct 30, 2026
Merged

hannesa2 merged 1 commit into
masterfrom
GitHub-user-attachments-API

Conversation

@hannesa2

Copy link
Copy Markdown
Collaborator

screenShotScript now uploads diff/new/error screenshots to uploads.github.com/user-attachments/assets - the same hosting GitHub's web UI uses for images pasted into issue/PR comments - and posts them with the default GITHUB_TOKEN. This removes the dependency on a privately-run upload server and its CLASSIC_TOKEN/SCREENSHOT_USER/ SCREENSHOT_PASSWORD secrets; only CI's built-in token is needed, so the pipeline works for anyone forking/running it without extra setup.

Bump the screenShotScript submodule to the commit implementing this, and grant the workflow pull-requests: write so GITHUB_TOKEN can post/delete the screenshot-diff PR comments.

@hannesa2
hannesa2 force-pushed the GitHub-user-attachments-API branch 3 times, most recently from 6c123f1 to 1a8eb7f Compare October 29, 2026 13:43
screenShotScript now uploads diff/new/error screenshots to
uploads.github.com/user-attachments/assets - the same hosting GitHub's
web UI uses for images pasted into issue/PR comments - and posts them
with the default GITHUB_TOKEN. This removes the dependency on a
privately-run upload server and its CLASSIC_TOKEN/SCREENSHOT_USER/
SCREENSHOT_PASSWORD secrets; only CI's built-in token is needed, so the
pipeline works for anyone forking/running it without extra setup.

Bump the screenShotScript submodule to the commit implementing this,
and grant the workflow pull-requests: write so GITHUB_TOKEN can
post/delete the screenshot-diff PR comments.
@hannesa2
hannesa2 force-pushed the GitHub-user-attachments-API branch from 1a8eb7f to 3f3f226 Compare October 30, 2026 06:40
@hannesa2
hannesa2 merged commit 37b383e into master Oct 30, 2026
3 of 4 checks passed
@hannesa2
hannesa2 deleted the GitHub-user-attachments-API branch October 30, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant