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

feat: support hardcoded checksums #200

Merged
merged 4 commits into from
Aug 18, 2021
Merged

Conversation

MarshallOfSound
Copy link
Member

We want to add the checksums directly to the published NPM package. To do so @electron/get needs to be able to take the hardcoded list and pass it to sumchecker. This makes the security chain of our checksums

yarn.lock integrity --> electron npm package --> hardcoded checksums --> remote electron binary is validated

Copy link
Member

@erickzhao erickzhao left a comment

Choose a reason for hiding this comment

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

Reading through the core logic makes sense to me.

src/types.ts Outdated Show resolved Hide resolved
@MarshallOfSound MarshallOfSound merged commit 1671db2 into main Aug 18, 2021
@MarshallOfSound MarshallOfSound deleted the support-hardcoded-checksums branch August 18, 2021 20:16
@electron-bot
Copy link
Contributor

🎉 This PR is included in version 1.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@malept
Copy link
Member

malept commented Aug 23, 2021

@ChALkeR
Copy link

ChALkeR commented Jan 4, 2022

This is great, huge thanks for this!
The caching logic has a bug though, breaking the abovementioned security chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants