diff --git a/src/main/java/cloud/dnation/jenkins/plugins/hetzner/launcher/AbstractHetznerSshConnector.java b/src/main/java/cloud/dnation/jenkins/plugins/hetzner/launcher/AbstractHetznerSshConnector.java index 1c3b674..093084c 100644 --- a/src/main/java/cloud/dnation/jenkins/plugins/hetzner/launcher/AbstractHetznerSshConnector.java +++ b/src/main/java/cloud/dnation/jenkins/plugins/hetzner/launcher/AbstractHetznerSshConnector.java @@ -64,8 +64,10 @@ public HetznerServerComputerLauncher createLauncher() { } public static abstract class DescriptorImpl extends Descriptor { - + // this method does not have any side effect, nor does it read any state. + @SuppressWarnings("lgtm[jenkins/no-permission-check]") @Restricted(NoExternalUse.class) + @RequirePOST public FormValidation doCheckSshCredentialsId(@QueryParameter String sshCredentialsId) { return doCheckNonEmpty(sshCredentialsId, "SSH credentials"); }