jenkinsci / jenkinsci/script-security-plugin

Missing whitelist for replaceFirst on DefaultGroovyMethods

Open
#906 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
76
Forks
181
Avg merge
14h 55m
Merged PRs (30d)
3

Description

### What feature do you want to see added?

In my pipeline i want to use the replaceFirst method but Jenkins requires a script approval for
`staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods replaceFirst java.lang.String java.util.regex.Pattern java.lang.String`

I had a look into the script whitelist file and found some entries for `StringGroovyMethods` but also for this signature no entry exist. Only for the closure versions.

### Upstream changes

_No response_

### Are you interested in contributing this feature?

yes

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.