Generate sha256 message digest for built binaries#418
Open
ddlees wants to merge 1 commit intobazelbuild:masterfrom
Open
Generate sha256 message digest for built binaries#418ddlees wants to merge 1 commit intobazelbuild:masterfrom
ddlees wants to merge 1 commit intobazelbuild:masterfrom
Conversation
fweikert
reviewed
Feb 1, 2023
| ctx.actions.run_shell( | ||
| outputs = [ctx.outputs.sha256], | ||
| inputs = [ctx.file.src], | ||
| command = "CWD=$PWD && cd `dirname {0}` && sha256sum `basename {0}` > $CWD/{1}".format(ctx.file.src.path, ctx.outputs.sha256.path), |
Member
There was a problem hiding this comment.
We typically build releases on MacOS, which uses a different tool (shasum -a 256)
Member
|
I think the best approach right now would be to produce a single text file containing the hashes for each artifact, since we manually upload all artifacts to GitHub. We should probably add a release pipeline to Bazel CI, and might explore something like SLSA in the future. |
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to #306
This work generates files that contain the sha256 message digest for each binary. I'm not sure how you go about populating artifacts to the github release but would be able to do it if someone could point me in the right direction.