How to accept TOS programatically when running build scan through maven

I added the maven extension, but my build hangs at the end cause it wants me to type ‘yes’ to accept the TOS.
how do i do it programatically so i can run the build scan in CI?

You can add some configuration to your gradle-enterprise.xml, see here