hunk.code_window: github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI=
   github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=
  
hunk.labels: keep add
hunk.after_edit: github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=
hunk.file_path: go.work.sum
hunk.type: add
file: import { confirm } from '@@/modals/confirm';
  
  import { GitFormModel } from './types';
  
  export function getAuthentication(
    model: Pick<
      GitFormModel,
      | 'RepositoryAuthentication'
      | 'RepositoryPassword'
      | 'RepositoryUsername'
      | 'RepositoryGitCredentialID'
    >
  ) {
    if (model.RepositoryGitCredentialID) {
      return { gitCredentialId: model.RepositoryGitCredentialID };
    }
  
    return {
      username: model.RepositoryUsername,
      password: model.RepositoryPassword,
    };
  }
  
  export function confirmEnableTLSVerify() {
    return confirm({
      title: 'Enable TLS Verification?',
      message:
        'Enabling the verification of TLS certificates without ensuring the correct configuration of your Certificate Authority (CA) for self-signed certificates can result in deployment failures.',
    });
  }
  