Skip to content

ci: run fork pull requests via pull_request_target behind a review gate - #1032

Merged
stv0g merged 1 commit into
masterfrom
ci-fork-pr-support
Jul 30, 2026
Merged

ci: run fork pull requests via pull_request_target behind a review gate#1032
stv0g merged 1 commit into
masterfrom
ci-fork-pr-support

Conversation

@leonardocarreras

Copy link
Copy Markdown
Contributor

Fork PRs like #1020 fail from prepare onward, because fork runs get a read-only GITHUB_TOKEN and cannot push to ghcr.

Forks can now run via pull_request_target, which is safe because each run needs approval from a member. Nothing changes for same-repo PRs. Tags are unchanged.

Needs the env fork-pr to be created with required reviewers before merge. Sorry @stv0g, I will need to make you work a bit extra because this needs admin rights.

Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
@stv0g
stv0g merged commit 5191129 into master Jul 30, 2026
43 checks passed
@stv0g
stv0g deleted the ci-fork-pr-support branch July 30, 2026 05:56
@stv0g

stv0g commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Unfortunately #1020 still seems to fail?

@leonardocarreras

leonardocarreras commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Unfortunately #1020 still seems to fail?

Yes, security in the actions increased, so we need some more explicit flags. Additional fix in #1033, hopefully is the last. At least the environment worked, so I think the rest is correct.

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.

2 participants