Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/artifact/src/internal/upload/blob-upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export async function uploadZipToBlobStorage(

hashStream.end()
sha256Hash = hashStream.read() as string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this apply to the variable names too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great question that I'm sure we could spend a lot of time thinking about. My view is that we're using a hashing algorithm, so hashStream is the correct term, the hash stream produces a hash, which can also be referred to as a digest, so we could probably go either way on whether or not to rename sha256hash here.

I'd generally lean towards the minimal change as it intuitively makes sense to me that a hashStream would produce a hash, but I'm open to renaming it if you have a more appropriate name for this variable in mind.

core.info(`SHA256 hash of uploaded artifact zip is ${sha256Hash}`)
core.info(`SHA256 digest of uploaded artifact zip is ${sha256Hash}`)

if (uploadByteCount === 0) {
core.warning(
Expand Down
Loading