Skip to content

Commit

Permalink
Security scan: remediate findings in AbstractHetznerSshConnector
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Kosegi <richard.kosegi@gmail.com>
  • Loading branch information
rkosegi committed Jul 18, 2024
1 parent 34c0675 commit e62ecee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ public HetznerServerComputerLauncher createLauncher() {
}

public static abstract class DescriptorImpl extends Descriptor<AbstractHetznerSshConnector> {

// 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");
}
Expand Down

0 comments on commit e62ecee

Please sign in to comment.