code: public static String getShaVersion(String digest) {
          return StringUtils.substring(digest, 0, StringUtils.indexOf(digest, ":"));
      }
docs: Get sha value from digest.
  example: sha256:abcabcabc12334 the value is sha256.
  
  @param digest
  @return