Skip to content

install-nix: validate installer's hash - #287

Merged
sandydoo merged 5 commits into
cachix:masterfrom
Fumesover:master
Nov 23, 2026
Merged

sandydoo merged 5 commits into
cachix:masterfrom
Fumesover:master

Conversation

@Fumesover

Copy link
Copy Markdown
Contributor

While the nix installer itself validates the hash of its dependencies, this action does not validate the hash of the downloaded script.

This PR validates the sha256 of the download scripts, and makes it mandatory to provide a hash when using a custom version

@sandydoo sandydoo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

makes it mandatory to provide a hash when using a custom version

This should be optional. The docs should recommend providing a hash and explain what that'll do.

It might also be preferable to mention sha256 in option name, but that's more of a nitpick.

@Fumesover

Copy link
Copy Markdown
Contributor Author

Thank you for the feedback, i pushed your changes in individualized commits:

  • 1616c9a: making the hash optional
  • 788d88a: renaming install_hash to install_sha256
  • 3affbe4: adding a dedicated section for custom version in the ci
  • also, I'm adding negative tests, confirmed via CI (Fumesover@3affbe4)

Would this version work for you?

@Fumesover
Fumesover requested a review from sandydoo November 21, 2026 11:06
@sandydoo
sandydoo merged commit 73a9ecf into cachix:master Nov 23, 2026
47 checks passed
Stensel8 pushed a commit to Stensel8/streamrip that referenced this pull request Nov 24, 2026
…om#127)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [cachix/install-nix-action](https://github.com/cachix/install-nix-action) | action | minor | `v32.0.0` → `v32.1.0` |

---

### Release Notes

<details>
<summary>cachix/install-nix-action (cachix/install-nix-action)</summary>

### [`v32.1.0`](https://github.com/cachix/install-nix-action/releases/tag/v32.1.0)

[Compare Source](cachix/install-nix-action@v32.0.0...v32.1.0)

#### What's Changed

- feat: add `install_sha256` to allow validating the installer's hash by [@&#8203;Fumesover](https://github.com/Fumesover) in [#&#8203;287](cachix/install-nix-action#287)
  The action can now verify the SHA-256 hash of the installer before it runs it. This is already enabled for the default installer.
  When using a custom `install_url`, set `install_sha256` to the hash of that installer to have it verified. This step is optional, but recommended.

**Full Changelog**: <cachix/install-nix-action@v32.0.0...v32.1.0>

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/Amsterdam)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zOS4yIiwidXBkYXRlZEluVmVyIjoiNDQuMzkuMiIsInRhcmdldEJyYW5jaCI6ImRldiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJnaXRodWItYWN0aW9ucyJdfQ==-->

Reviewed-on: https://opencommit.eu/Stensel8/streamrip/pulls/127
Reviewed-by: Sten T. <stentijhuis@protonmail.com>
Stensel8 pushed a commit to Stensel8/streamrip that referenced this pull request Nov 26, 2026
…om#127)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [cachix/install-nix-action](https://github.com/cachix/install-nix-action) | action | minor | `v32.0.0` → `v32.1.0` |

---

### Release Notes

<details>
<summary>cachix/install-nix-action (cachix/install-nix-action)</summary>

### [`v32.1.0`](https://github.com/cachix/install-nix-action/releases/tag/v32.1.0)

[Compare Source](cachix/install-nix-action@v32.0.0...v32.1.0)

#### What's Changed

- feat: add `install_sha256` to allow validating the installer's hash by [@&#8203;Fumesover](https://github.com/Fumesover) in [#&#8203;287](cachix/install-nix-action#287)
  The action can now verify the SHA-256 hash of the installer before it runs it. This is already enabled for the default installer.
  When using a custom `install_url`, set `install_sha256` to the hash of that installer to have it verified. This step is optional, but recommended.

**Full Changelog**: <cachix/install-nix-action@v32.0.0...v32.1.0>

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/Amsterdam)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zOS4yIiwidXBkYXRlZEluVmVyIjoiNDQuMzkuMiIsInRhcmdldEJyYW5jaCI6ImRldiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJnaXRodWItYWN0aW9ucyJdfQ==-->

Reviewed-on: https://opencommit.eu/Stensel8/streamrip/pulls/127
Reviewed-by: Sten T. <stentijhuis@protonmail.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