Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fail if large file sha256 does not match #2433

Merged
merged 3 commits into from
Jul 21, 2023

Conversation

laurentsimon
Copy link
Collaborator

@laurentsimon laurentsimon commented Jul 20, 2023

As part of #2365, we added support for large files.

We forgot to update the "success" computation. This means that even though the sha256 may differ from the expected, the job continues and we never record the failure status.

I fix this in the PR. I also delete the downloaded folder / artifact if the sha256 don't match, to avoid a similar problem in he future

Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
@laurentsimon laurentsimon enabled auto-merge (squash) July 21, 2023 04:10
@laurentsimon laurentsimon merged commit a650b15 into slsa-framework:main Jul 21, 2023
74 checks passed
enteraga6 pushed a commit to enteraga6/slsa-github-generator that referenced this pull request Aug 8, 2023
As part of
slsa-framework#2365, we
added support for large files.

We forgot to update the "success" computation. This means that even
though the sha256 may differ from the expected, the job continues and we
never record the failure status.

I fix this in the PR. I also delete the downloaded folder / artifact if
the sha256 don't match, to avoid a similar problem in he future

---------

Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: Noah Elzner <elzner@google.com>
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.

2 participants