Skip to content

fix: publish screenshot report images from Actions - #124

Merged
vitormattos merged 1 commit into
mainfrom
fix/screenshot-comment-images
Sep 21, 2026
Merged

vitormattos merged 1 commit into
mainfrom
fix/screenshot-comment-images

Conversation

@vitormattos

Copy link
Copy Markdown
Member

The end-to-end validation of #122 exposed a limitation in the first implementation: gh pr comment --attach does not support GitHub App tokens, including the Actions GITHUB_TOKEN, so the follow-up workflow failed with unsupported authentication type.

This keeps the same trusted workflow_run design, but publishes validated PNG files to a dedicated screenshot-reports branch and comments with raw image URLs instead.

For safety, the workflow only publishes files that are detected as PNG and are no larger than 5 MiB. It still does not check out or execute pull request code in the privileged workflow.

Validation will be repeated with the temporary #123 PR after this lands.

@vitormattos
vitormattos requested a review from a team as a code owner September 21, 2026 22:55
@vitormattos
vitormattos merged commit ecca83d into main Sep 21, 2026
4 of 6 checks passed
@vitormattos
vitormattos deleted the fix/screenshot-comment-images branch September 21, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant