jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-53752] Block PRs from forks from untrusted users

Open
#1,207 25 comments 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin enhancement imported-jira-issue priority:major resolution:unresolved security
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

The plugin currently has no way to block untrusted users from making a PR from a fork and having this PR built by Jenkins. The GitHub Pull Request Builder does have this feature which is very useful for open source projects to protect the build system from malicious changes. The documentation on the GitHub Pull Request Builder wiki page says to move from the GHPRB plugin to the GitHub Branch source plugin which causes the user to lose this extremely useful functionality.

---
Originally reported by roguishmountain, imported from: Block PRs from forks from untrusted users


  • status: Reopened
  • priority: Major
  • component(s): github-branch-source-plugin
  • label(s): configuration, security, stalled-pr
  • resolution: Unresolved
  • votes: 6
  • watchers: 10
  • imported: 2025-12-02

Raw content of original issue

The plugin currently has no way to block untrusted users from making a PR from a fork and having this PR built by Jenkins. The GitHub Pull Request Builder does have this feature which is very useful for open source projects to protect the build system from malicious changes. The documentation on the GitHub Pull Request Builder wiki page says to move from the GHPRB plugin to the GitHub Branch source plugin which causes the user to lose this extremely useful functionality.

2 attachments

- [github-branch-source-discover-pull-requests.PNG](https://issues.jenkins.io/secure/attachment/44586/github-branch-source-discover-pull-requests.PNG)
> ![github-branch-source-discover-pull-requests.PNG](https://issues.jenkins.io/secure/attachment/44586/github-branch-source-discover-pull-requests.PNG)
- [image-2019-07-23-10-28-00-893.png](https://issues.jenkins.io/secure/attachment/48060/image-2019-07-23-10-28-00-893.png)
> ![image-2019-07-23-10-28-00-893.png](https://issues.jenkins.io/secure/attachment/48060/image-2019-07-23-10-28-00-893.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.