Refactor and test sast-rules deploy script
Description
The sast-rules deploy script has become complex over time. It's also untested which makes making changes harder.
Add tests to the deploy script and refactor for readability.
The sast-rules deploy script has become complex over time. It's also untested which makes making changes harder.
Add tests to the deploy script and refactor for readability.