code: async function verifyAuth(repositoryUrl, branch, execaOpts) {
    try {
      await execa('git', ['push', '--dry-run', repositoryUrl, `HEAD:${branch}`], execaOpts);
    } catch (error) {
      debug(error);
      throw error;
    }
  }
docs: Verify the write access authorization to remote repository with push dry-run.
  
  @param {String} repositoryUrl The remote repository URL.
  @param {String} branch The repositoru branch for which to verify write access.
  @param {Object} [execaOpts] Options to pass to `execa`.
  
  @throws {Error} if not authorized to push.