When using self-hosted runners we provision compute with a Maven settings.xml and currently this action will overwrite our correct settings.xml with one that's inoperable. It would be nice to signal to the action to not generate a settings.xml file.
Another option might be to allow a template .github/workflow/maven/settings.xml that can be provisioned on the runner. In the case of running with GitHub actions proper the template can use ${{ secrets.references }} and in self-host just normal envars which Maven will interpolate into the settings file. Either way it's secure.
When using self-hosted runners we provision compute with a Maven
settings.xmland currently this action will overwrite our correctsettings.xmlwith one that's inoperable. It would be nice to signal to the action to not generate asettings.xmlfile.Another option might be to allow a template
.github/workflow/maven/settings.xmlthat can be provisioned on the runner. In the case of running with GitHub actions proper the template can use${{ secrets.references }}and in self-host just normal envars which Maven will interpolate into the settings file. Either way it's secure.