workflow-cps-plugin
workflow-cps-plugin copied to clipboard
Cache `GroovySourceFileAllowlist` responses and remove entries from the default allowlist that are unrelated to `WithScriptDescriptor.WithScriptAllowlist`
See https://github.com/jenkinsci/workflow-cps-plugin/pull/538#issuecomment-1883442531.
GroovySourceFileAllowlist
can be consulted many times, but the allowed files are effectively static and just depend on which plugins are installed. Once a file has been allowed once, we don't need to check all of the allowlists again.
Testing done
### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue