broker
broker copied to clipboard
feat: add url placeholder var swap for ghsa in plugin
- [ ] Ready for review
- [ ] Follows CONTRIBUTING rules
What does this PR do?
Adds opt-in logic in github server app plugin at connection level to enable variable interpolation in urls. For the cases where a url must contain a value that is only available in the broker client, it is now possible to inject this value simply by having a placeholder value in the filters uris, in addition to the header and body value injections, long time part of the broker client. Keeping it in the plugin isolates this logic to only relevant type(s).
This approach is favored over the global logic in https://github.com/snyk/broker/pull/800.