Skip to content

fix(ci): show-pr-change-note not working with prs from forks - #3453

Merged
ice0 merged 1 commit into
synfig:masterfrom
akayiz:show-pr-change-note
Nov 22, 2024
Merged

ice0 merged 1 commit into
synfig:masterfrom
akayiz:show-pr-change-note

Conversation

@akayiz

@akayiz akayiz commented Nov 15, 2024 •

Copy link
Copy Markdown
Contributor

This fixes the issue where contributors weren't automatically shown how their pull requests affect the release notes if the pull request was created from a forked repository. This is crucial because (as I understand) Synfig’s contribution mechanism relies entirely on forking.

The change uses the GitHub Actions event pull_request_target instead of pull_request, which:

  1. Solves the above permissions issue.
  2. Maintains security since it only uses the workflow defined in the main branch of the official Synfig repository, avoiding execution of untrusted code from the fork.

For more details on the difference between pull_request and pull_request_target, check this

@rodolforg
rodolforg requested a review from ice0 November 20, 2024 15:24
@ice0
ice0 merged commit 1494637 into synfig:master Nov 22, 2024
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.

3 participants