Skip to content

Add checksum to verify binary#169

Merged
emcfarlane merged 8 commits intomainfrom
ed/checksum
May 9, 2025
Merged

Add checksum to verify binary#169
emcfarlane merged 8 commits intomainfrom
ed/checksum

Conversation

@emcfarlane
Copy link
Copy Markdown
Collaborator

This PR adds a new parameter checksum to the GitHub action input to validate the sha256 hash of the installed buf binary.

Closes #168

@github-actions

This comment has been minimized.

}
}

// assertChecksum verifies the sha256 checksum of the buf binary.
Copy link
Copy Markdown
Member

@nicksnyder nicksnyder May 9, 2025

Choose a reason for hiding this comment

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

nonblocking nit: you have parameterized the algorithm but documented that it always uses sha256.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Moved to const.

@emcfarlane emcfarlane merged commit e70e137 into main May 9, 2025
41 checks passed
@emcfarlane emcfarlane deleted the ed/checksum branch May 9, 2025 16:19
@emcfarlane emcfarlane mentioned this pull request May 12, 2025
emcfarlane added a commit that referenced this pull request May 12, 2025
Below is the draft release notes:

## What's Changed
* Add optional checksum parameter to verify binary by @emcfarlane in
#169

**Full Changelog**:
v1.1.1...v1.1.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to execute without installing

3 participants