Fix CVE 2019 10474 and bump dependencies#12
Fix CVE 2019 10474 and bump dependencies#12orctom merged 3 commits intojenkinsci:masterfrom monwolf:bugfix/CVE-2019-10474
Conversation
remove deprecated calls to jenkins api
|
@MarkEWaite @orctom I can test in the CI, because I upgraded the parent, Jenkins, and the requisites of the java version so if the Jenkinsfile in master isn't upgraded it stills trying with java 8. Running tests in local is fine: |
There was a problem hiding this comment.
Thanks. I'm not seeing any code change that addresses the vulnerability. Will that come later as additional commits to the pull request?
https://github.com/jenkinsci/global-post-script-plugin/pull/12/files#r1144184643 is the fix that I missed earlier.
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <java.level>8</java.level> | ||
| <jenkins.version>2.303.3</jenkins.version> | ||
| <jenkins.version>2.375.2</jenkins.version> |
There was a problem hiding this comment.
The "Choosing a Jenkins version" page recommends 2.361.4 when making the transition to Java 11 and plugin bill of materials.
| <jenkins.version>2.375.2</jenkins.version> | |
| <jenkins.version>2.361.4</jenkins.version> |
|
I'm not a maintainer of this plugin. @orctom and @mhmdabdh are maintainers. I have permission to run the job on ci.jenkins.io with the modified Jenkinsfile. I've done that. You'll see results in https://ci.jenkins.io/job/Plugins/job/global-post-script-plugin/job/PR-12/3/ |
| } | ||
|
|
||
| public FormValidation doCheckScript(@QueryParameter("script") String name) throws IOException, ServletException { | ||
| Jenkins.get().checkPermission(Jenkins.ADMINISTER); |
There was a problem hiding this comment.
This is the fix that I had missed in my earlier comment.
|
@monwolf I think you should adopt the plugin so that you can merge this fix and your pull request #13 . It seems unlikely that the listed maintainers will become active again after several years of inactivity. |
|
@monwolf please adopt this plugin if possible! |
|
Thanks very much @orctom ! |
This PR address GHSA-24w5-w6fw-qqx7, updates dependencies and remove getInstance calls