jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-47155] Improve the visibility of "Loading trusted files from base ..."

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

Description

When a PR is created by someone who doesn't have the write permission in a repository (not trusted author) then the plugin is using the `Jenkinsfile` from the trusted branch like `develop`

 

In that case we have a warning in the build logs like

Loading trusted files from base branch develop at XXXXX rather than XXXXX

When you build is generating more than few lines of logs you are 99.999999% sure to miss this message which is at the beginning of your logs and thus trying to understand why your build is failing because you changed something in the `Jenkinsfile` and it's not used is a nightmare

 

cc jglick, stephenconnolly, abayer

---
Originally reported by aheritier, imported from: Improve the visibility of "Loading trusted files from base ..."


  • status: Open
  • priority: Minor
  • component(s): github-branch-source-plugin
  • label(s): diagnostics
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

When a PR is created by someone who doesn't have the write permission in a repository (not trusted author) then the plugin is using the `Jenkinsfile` from the trusted branch like `develop`

 

In that case we have a warning in the build logs like



Loading trusted files from base branch develop at XXXXX rather than XXXXX


When you build is generating more than few lines of logs you are 99.999999% sure to miss this message which is at the beginning of your logs and thus trying to understand why your build is failing because you changed something in the `Jenkinsfile` and it's not used is a nightmare

 

cc jglick, stephenconnolly, abayer

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.