When running the sonarqube-scan-action action in an environment where the only way out on the Internet is through a proxy server, the downloading of the public key for GPG verification fails.
For me to understand your issue a bit better, do you have a workaround on your end or does this bug block you completely?
On the PR itself, principally the PR seems good. The new verifying logic seems a bit brittle to me, and as such, I’m hesitant merging it. That being said, I don’t really have a better solution. I’ll leave a separate review on the PR.
The only solution that I have currently is to replace “gpg” on $PATH to be a script that would check the arguments and override to do the sequence that was put in the PR to the action.
Since that fix is even more hackish than fixing it in the action, I have, for now disable verification, but will as soon as there is a tag publicly available, switch to it and enable it again.
While I did the above PR, I noticed that the keyserver is not configurable from the workflows. Is this something you would like me to contribute or something that would be easier for your developers to handle internally? (just provide an option to the action.yml)