From e8b7f73c6bb171893dcf666585a1398c4b468816 Mon Sep 17 00:00:00 2001 From: Matthias Urhahn Date: Wed, 5 Aug 2026 12:59:40 +0200 Subject: [PATCH] Add shared screenshot thumbnail workflow (#666) Shrinks oversized screenshots posted in issues and comments into clickable thumbnails. Implementation shared from d4rken-org/.github; this stub only supplies the triggers, because workflow_call cannot be driven by issue_comment directly. Pinned by commit SHA rather than a moving tag. --- .github/workflows/thumbnail-images.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/thumbnail-images.yml diff --git a/.github/workflows/thumbnail-images.yml b/.github/workflows/thumbnail-images.yml new file mode 100644 index 00000000..a97a705f --- /dev/null +++ b/.github/workflows/thumbnail-images.yml @@ -0,0 +1,26 @@ +name: Thumbnail images + +# Shrinks oversized screenshots in issues and comments into clickable +# thumbnails. The logic lives in d4rken-org/.github so every app repo shares +# one copy; this stub only supplies the triggers, because workflow_call cannot +# be triggered by issue_comment directly. +# +# The shared workflow splits into an unprivileged parsing job and a privileged +# job that only makes the API call, so issues:write below is the ceiling, not +# what the parsing half receives. +# +# Add to a body to opt it out. + +on: + issue_comment: + types: [created, edited] + issues: + types: [opened, edited] + +permissions: {} + +jobs: + thumbnail: + permissions: + issues: write + uses: d4rken-org/.github/.github/workflows/thumbnail-images.yml@3756372c3c844e4817c03d27983691f9991a19f4