Commit b33cc3a
authored
Fix JENKINS-69719: Fetch PR data from target repo (#67)
Jenkins token permissions potentially invalid to access source repo.
This is the cause of issue [JENKINS-69719](https://issues.jenkins.io/browse/JENKINS-69719).
All required Gitea Pull Request data can be accessed via target repo.
Replace access to potentially inaccessible source repository by references in target repository Pull Request head.
### Testing done
The change affects token/credential permission scope on the Gitea server.
With the changed source for data access, the `MultiBranchPipeline` scan completes.
Jenkins can pull/checkout (moving) head of pull request.
Resolution to commit hash is done independently in body of `GiteaSCMFileSystem` constructor.1 parent 27294f0 commit b33cc3a
File tree
1 file changed
+3
-3
lines changed- src/main/java/org/jenkinsci/plugin/gitea
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments