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

Checksum verification #1

Open
jdolitsky opened this issue Oct 20, 2021 · 5 comments
Open

Checksum verification #1

jdolitsky opened this issue Oct 20, 2021 · 5 comments

Comments

@jdolitsky
Copy link

Does it make sense to validate the checksum of release tarballs prior to unpacking?

Maybe as an optional input param?

@imjasonh
Copy link
Owner

Is that something I can get from GitHub? I'd rather not have to maintain a mapping of version->sha myself.

That means a compromised GitHub can lie to us about the artifact and it's sha, but then they could also lie to users about what this action is configured to do, so 🤷‍♂️

@jdolitsky
Copy link
Author

It's be something as a user I could provide (optionally):

- uses: imjasonh/[email protected]
  with:
    version: v0.6.0
    checksum: b71c7ca16abff07787516efbe0c06c129d273f34490d6a85f815cec980fffe85

Happy to PR this

@imjasonh
Copy link
Owner

imjasonh commented Oct 20, 2021

I guess my question is, what kind of attack/error are you trying to guard against? Malicious/compromised crane maintainers pushing a new crane binary in a release?

@jdolitsky
Copy link
Author

Yes.

But I suppose if they get you, they can get this action too 😭

@imjasonh
Copy link
Owner

Yeah, more or less.

I'm not opposed to adding it, I just don't think I'd use it myself. And it'd only be useful for version-pinned releases, not latest-release (the default) or tip.

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

No branches or pull requests

2 participants