Open patricksimonian opened 5 years ago
in .jenkins/docker/contrib/configuration/jobs/_jobname/config.xml this line of code seems to allow any forked pr to kick of a build in the name space
.jenkins/docker/contrib/configuration/jobs/_jobname/config.xml
<org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait> <strategyId>2</strategyId> <trust class="org.jenkinsci.plugins.github_branch_source.ForkPullRequestDiscoveryTrait$TrustPermission"/> </org.jenkinsci.plugins.github__branch__source.ForkPullRequestDiscoveryTrait>
remove this config from the generator.
@patricksimonian , ForkPullRequestDiscoveryTrait$TrustPermission means only from "From users with Admin or Write permission". Did you observe anything different from that?
ForkPullRequestDiscoveryTrait$TrustPermission
in
.jenkins/docker/contrib/configuration/jobs/_jobname/config.xml
this line of code seems to allow any forked pr to kick of a build in the name spaceWhy is this a problem?
Potential Fix
remove this config from the generator.