Add a convenience method to get the SHA of the target.