Reference custom ruleset file in sast analyzer job

Anyone knows how to overwrite or modify in any form the pmd-apex-sast job to reference a custom ruleset (xml) file?

I’ve read about sast-ruleset.toml, however, to my understanding it can’t be used to refer to another ruleset in the current repository.