Skip to content

Comments

[GHA] Permit rebuild from forks#18699

Merged
kaikreuzer merged 1 commit intoopenhab:mainfrom
holgerfriedrich:pr-gha-permissions2
May 19, 2025
Merged

[GHA] Permit rebuild from forks#18699
kaikreuzer merged 1 commit intoopenhab:mainfrom
holgerfriedrich:pr-gha-permissions2

Conversation

@holgerfriedrich
Copy link
Member

carryover from openhab/openhab-core#4808 - it seems it finally works fine now for core....

Rebuild still did not work on PRs from forked repost.
This is to protect the repo from malicious PRs.

The way to do it is basically, to use the pull_request_target instead of pull_request (which always runs on read-only permissions).

This needs to be done carefully, see
https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/

Permissions have been reduced to the necessary ones. Persistence of checkout credentials has been disabled.

Regression of
#18596
#18629
#18632

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
@holgerfriedrich holgerfriedrich requested a review from a team as a code owner May 18, 2025 21:16
@kaikreuzer kaikreuzer merged commit 248c464 into openhab:main May 19, 2025
2 of 3 checks passed
@kaikreuzer kaikreuzer added this to the 5.0 milestone May 19, 2025
@holgerfriedrich holgerfriedrich deleted the pr-gha-permissions2 branch May 19, 2025 15:41
phenix1990 pushed a commit to phenix1990/openhab-addons that referenced this pull request Jul 31, 2025
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
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