Skip to content

Automate nix updates in CI - #241

Merged
sandydoo merged 2 commits into
cachix:masterfrom
Mic92:nix-updates
May 27, 2025
Merged

sandydoo merged 2 commits into
cachix:masterfrom
Mic92:nix-updates

Conversation

@Mic92

@Mic92 Mic92 commented May 27, 2025

Copy link
Copy Markdown
Contributor

Tested in Mic92#3

@sandydoo sandydoo added the github_actions Pull requests that update Github_actions code label May 27, 2025
@sandydoo
sandydoo merged commit 17fe5fb into cachix:master May 27, 2025
@Mic92
Mic92 deleted the nix-updates branch May 27, 2025 10:38
fi
sed -i -E "s/nix_version=[0-9.]+/nix_version=${latest_nix}/" ./install-nix.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It would be great to pin actions in this workflow, especially this privileged action, to git commit hash, like what #201 does, for better security.

cc maintainer @sandydoo

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

And there is no downside to it. Since 2022Âđ dependabot will even maintain the human-readable version that lives on the comment by the side of the SHA hash.

Âđ: dependabot/dependabot-core#5951

WiiPlayer2 pushed a commit to WiiPlayer2/nixos-common that referenced this pull request Sep 2, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [cachix/install-nix-action](https://github.com/cachix/install-nix-action) | action | major | `v27` → `v31` |

---

### Release Notes

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

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

[Compare Source](cachix/install-nix-action@v31.11.0...v31.11.1)

##### What's Changed

- nix: 2.35.1 -> 2.35.2 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;281](cachix/install-nix-action#281)
  Fixes a crash ([`Assertion '!awake.empty()' failed`](NixOS/nix#16005)) that could abort builds.

**Full Changelog**: <cachix/install-nix-action@v31.11.0...v31.11.1>

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

[Compare Source](cachix/install-nix-action@v31.10.7...v31.11.0)

##### What's Changed

- nix: 2.34.8 -> 2.35.1 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;279](cachix/install-nix-action#279)
  Release notes: <https://discourse.nixos.org/t/nix-2-35-0-released/78914>

**Full Changelog**: <cachix/install-nix-action@v31.10.7...v31.11.0>

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

[Compare Source](cachix/install-nix-action@v31.10.6...v31.10.7)

##### What's Changed

- nix: 2.34.7 -> 2.34.8 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;278](cachix/install-nix-action#278)

**Full Changelog**: <cachix/install-nix-action@v31.10.6...v31.10.7>

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

[Compare Source](cachix/install-nix-action@v31.10.5...v31.10.6)

##### What's Changed

- nix: 2.34.6 -> 2.34.7 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;275](cachix/install-nix-action#275)
  **[GHSA-vh5x-56v6-4368](https://github.com/NixOS/nix/security/advisories/GHSA-vh5x-56v6-4368)**: Fixes a coroutine stack-to-heap overflow via unbounded recursion in the NAR directory parser. **Severity: High.**
  **[GHSA-gr92-w2r5-qw5p](https://github.com/NixOS/nix/security/advisories/GHSA-gr92-w2r5-qw5p)**: Fixes an absolute path  traversal vulnerability when unpacking archives to disk. Severity: Moderate.

**Full Changelog**: <cachix/install-nix-action@v31...v31.10.6>

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

[Compare Source](cachix/install-nix-action@v31.10.4...v31.10.5)

##### What's Changed

- nix: 2.34.5 -> 2.34.6 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;274](cachix/install-nix-action#274)

**Full Changelog**: <cachix/install-nix-action@v31...v31.10.5>

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

[Compare Source](cachix/install-nix-action@v31.10.3...v31.10.4)

##### What's Changed

- nix: 2.34.4 -> 2.34.5 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;273](cachix/install-nix-action#273)
  **\[SECURITY]** Fixes a root privilege escalation vulnerability via sandbox escape <GHSA-g3g9-5vj6-r3gj>

**Full Changelog**: <cachix/install-nix-action@v31.10.3...v31.10.4>

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

[Compare Source](cachix/install-nix-action@v31.10.2...v31.10.3)

##### What's Changed

- nix: 2.34.2 -> 2.34.4 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;271](cachix/install-nix-action#271)

**Full Changelog**: <cachix/install-nix-action@v31...v31.10.3>

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

[Compare Source](cachix/install-nix-action@v31.10.1...v31.10.2)

##### What's Changed

- nix: 2.34.1 -> 2.34.2 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;270](cachix/install-nix-action#270)

**Full Changelog**: <cachix/install-nix-action@v31...v31.10.2>

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

[Compare Source](cachix/install-nix-action@v31.10.0...v31.10.1)

##### What's Changed

- nix: 2.34.0 -> 2.34.1 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;269](cachix/install-nix-action#269)
  Fixes a bug introduced in 2.34.0 that made the Nix daemon fail to load authentication keys configured by `cachix-action`.

**Full Changelog**: <cachix/install-nix-action@v31.10.0...v31.10.1>

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

[Compare Source](cachix/install-nix-action@v31.9.1...v31.10.0)

##### What's Changed

- nix: 2.33.3 -> 2.34.0 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;267](cachix/install-nix-action#267)
  Release notes: <https://discourse.nixos.org/t/nix-2-34-0-released/75818>

⚠ïļ Nix 2.34.0 contains a regression that, under certain scenarios (a `trusted-user` + a client-side `netrc-file`), breaks authentication with private caches that rely on `netrc` files. This regression affects `cachix/cachix-action`.

**UPD: 2.34.1 has been released with a patch for the authentication issue**

**Full Changelog**: <cachix/install-nix-action@v31.9.1...v31.10.0>

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

[Compare Source](cachix/install-nix-action@v31.9.0...v31.9.1)

##### What's Changed

- nix: 2.33.0 -> 2.33.3 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;266](cachix/install-nix-action#266)

**Full Changelog**: <cachix/install-nix-action@v31...v31.9.1>

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

[Compare Source](cachix/install-nix-action@v31.8.4...v31.9.0)

##### What's Changed

- nix: 2.32.4 -> 2.33.0 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;264](cachix/install-nix-action#264)
- chore(deps): bump peter-evans/create-pull-request from 7 to 8 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;263](cachix/install-nix-action#263)
- chore(deps): bump actions/checkout from 5 to 6 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;262](cachix/install-nix-action#262)

**Full Changelog**: <cachix/install-nix-action@v31.8.4...v31.9.0>

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

[Compare Source](cachix/install-nix-action@v31.8.3...v31.8.4)

##### What's Changed

- nix: 2.32.3 -> 2.32.4 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;261](cachix/install-nix-action#261)

**Full Changelog**: <cachix/install-nix-action@v31.8.3...v31.8.4>

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

[Compare Source](cachix/install-nix-action@v31.8.2...v31.8.3)

##### What's Changed

- nix: 2.32.2 -> 2.32.3 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;260](cachix/install-nix-action#260)

**Full Changelog**: <cachix/install-nix-action@v31.8.2...v31.8.3>

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

[Compare Source](cachix/install-nix-action@v31.8.1...v31.8.2)

##### What's Changed

- nix: 2.32.1 -> 2.32.2 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;259](cachix/install-nix-action#259)

**Full Changelog**: <cachix/install-nix-action@v31.8.1...v31.8.2>

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

[Compare Source](cachix/install-nix-action@v31.8.0...v31.8.1)

##### What's Changed

- nix: 2.32.0 -> 2.32.1 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;258](cachix/install-nix-action#258)

**Full Changelog**: <cachix/install-nix-action@v31...v31.8.1>

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

[Compare Source](cachix/install-nix-action@v31.7.0...v31.8.0)

##### What's Changed

- nix: 2.31.2 -> 2.32.0 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;257](cachix/install-nix-action#257)
  Release notes: <https://discourse.nixos.org/t/nix-2-32-0-released/70528>

**Full Changelog**: <cachix/install-nix-action@v31.7.0...v31.8.0>

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

[Compare Source](cachix/install-nix-action@v31.6.2...v31.7.0)

##### What's Changed

- feat: set up the environment based on the installer shell scripts by [@&#8203;sandydoo](https://github.com/sandydoo) in [#&#8203;251](cachix/install-nix-action#251)

  Configures the following environment variables:

  - `NIX_PROFILES`
  - `NIX_SSL_CERT_FILE` (if not set)

  Adds the bin directory from the user's profile to `$PATH`.

**Full Changelog**: <cachix/install-nix-action@v31.6.2...v31.7.0>

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

[Compare Source](cachix/install-nix-action@v31.6.1...v31.6.2)

##### What's Changed

- nix: 2.31.1 -> 2.31.2 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;256](cachix/install-nix-action#256)

**Full Changelog**: <cachix/install-nix-action@v31...v31.6.2>

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

[Compare Source](cachix/install-nix-action@v31.6.0...v31.6.1)

##### What's Changed

- ci: adjust oldest supported installer for macos-15 by [@&#8203;sandydoo](https://github.com/sandydoo) in [#&#8203;252](cachix/install-nix-action#252)
- nix: 2.31.0 -> 2.31.1 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;253](cachix/install-nix-action#253)

**Full Changelog**: <cachix/install-nix-action@v31...v31.6.1>

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

[Compare Source](cachix/install-nix-action@v31.5.2...v31.6.0)

##### What's Changed

- chore(deps): bump actions/checkout from 4 to 5 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;249](cachix/install-nix-action#249)
- docs: add example for `nix develop` by [@&#8203;jennydaman](https://github.com/jennydaman) in [#&#8203;248](cachix/install-nix-action#248)
- nix: 2.30.2 -> 2.31.0 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;250](cachix/install-nix-action#250)
  Release notes: <https://discourse.nixos.org/t/nix-2-31-0-released/68465>

##### New Contributors

- [@&#8203;jennydaman](https://github.com/jennydaman) made their first contribution in [#&#8203;248](cachix/install-nix-action#248)

**Full Changelog**: <cachix/install-nix-action@v31.5.2...v31.6.0>

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

[Compare Source](cachix/install-nix-action@v31.5.1...v31.5.2)

##### What's Changed

- nix: 2.30.1 -> 2.30.2 by [@&#8203;github-actions](https://github.com/github-actions)\[bot] in [#&#8203;246](cachix/install-nix-action#246)

**Full Changelog**: <cachix/install-nix-action@v31...v31.5.2>

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

[Compare Source](cachix/install-nix-action@v31.5.0...v31.5.1)

##### What's Changed

- nix: 2.30.0 -> 2.30.1 by [@&#8203;xokdvium](https://github.com/xokdvium) in [#&#8203;245](cachix/install-nix-action#245)
  **\[SECURITY]** Builds with Nix 2.30.0 on macOS were executed with elevated privileges (root), instead of the build users. <GHSA-qc7j-jgf3-qmhg>

##### New Contributors

- [@&#8203;xokdvium](https://github.com/xokdvium) made their first contribution in [#&#8203;245](cachix/install-nix-action#245)

**Full Changelog**: <cachix/install-nix-action@v31.5.0...v31.5.1>

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

[Compare Source](cachix/install-nix-action@v31.4.1...v31.5.0)

##### What's Changed

- nix: 2.29.1 -> 2.30.0 by [@&#8203;github-actions](https://github.com/github-actions) in [#&#8203;244](cachix/install-nix-action#244)
  Release notes: <https://nix.dev/manual/nix/2.30/release-notes/rl-2.30.html>

**Full Changelog**: <cachix/install-nix-action@v31.4.1...v31.5.0>

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

[Compare Source](cachix/install-nix-action@v31.4.0...v31.4.1)

##### What's Changed

- nix: 2.29.0 -> 2.29.1 by [@&#8203;github-actions](https://github.com/github-actions) in [#&#8203;243](cachix/install-nix-action#243)
  **\[SECURITY]** <https://discourse.nixos.org/t/security-advisory-privilege-escalations-in-nix-lix-and-guix/66017>

##### New Contributors

- [@&#8203;github-actions](https://github.com/github-actions) made their first contribution in [#&#8203;243](cachix/install-nix-action#243)

**Full Changelog**: <cachix/install-nix-action@v31.4.0...v31.4.1>

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

[Compare Source](cachix/install-nix-action@v31.3.0...v31.4.0)

##### What's Changed

- nix: 2.28.3 -> 2.29.0 by [@&#8203;Mic92](https://github.com/Mic92) in [#&#8203;239](cachix/install-nix-action#239)
  Release notes: <https://nix.dev/manual/nix/2.29/release-notes/rl-2.29>
- Automate nix updates in CI by [@&#8203;Mic92](https://github.com/Mic92) in [#&#8203;241](cachix/install-nix-action#241)

**Full Changelog**: <cachix/install-nix-action@v31.3.0...v31.4.0>

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

[Compare Source](cachix/install-nix-action@v31.2.0...v31.3.0)

##### What's Changed

- feat: Pin actions to hashes by [@&#8203;l0b0](https://github.com/l0b0) in [#&#8203;201](cachix/install-nix-action#201)
- chore(deps): bump actions/checkout from 4.1.1 to 4.2.2 by [@&#8203;dependabot](https://github.com/dependabot) in [#&#8203;234](cachix/install-nix-action#234)
- docs: document how to provide AWS credentials to the nix-daemon by [@&#8203;sandydoo](https://github.com/sandydoo) in [#&#8203;235](cachix/install-nix-action#235)
- nix: 2.28.2 -> 2.28.3 by [@&#8203;Mic92](https://github.com/Mic92) in [#&#8203;236](cachix/install-nix-action#236)

**Full Changelog**: <cachix/install-nix-action@v31.2.0...v31.3.0>

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

[Compare Source](cachix/install-nix-action@v31.1.0...v31.2.0)

##### What's Changed

- nix: 2.26.3 -> 2.28.2 by [@&#8203;Mic92](https://github.com/Mic92) in [#&#8203;232](cachix/install-nix-action#232)

**Full Changelog**: <cachix/install-nix-action@v31.1.0...v31.2.0>

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

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

##### What's Changed

- Remove deprecated `--darwin-use-unencrypted-nix-store-volume` flag by [@&#8203;sandydoo](https://github.com/sandydoo) in [#&#8203;230](cachix/install-nix-action#230)
- action: add option to configure updating trusted users by [@&#8203;Enzime](https://github.com/Enzime) in [#&#8203;231](cachix/install-nix-action#231)

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

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

[Compare Source](cachix/install-nix-action@v30...v31)

##### What's Changed

- nix: 2.24.9 -> 2.25.2 by [@&#8203;Mic92](https://github.com/Mic92) in [#&#8203;218](cachix/install-nix-action#218)
- ci: fix latest installer tests by [@&#8203;sandydoo](https://github.com/sandydoo) in [#&#8203;220](cachix/install-nix-action#220)
- GitHub test.yml: add ubuntu-24.04-arm to matrix by [@&#8203;msgilligan](https://github.com/msgilligan) in [#&#8203;221](cachix/install-nix-action#221)
- nix: 2.25.2 -> 2.26.2 by [@&#8203;Mic92](https://github.com/Mic92) in [#&#8203;226](cachix/install-nix-action#226)
- nix: 2.26.2 -> 2.26.3 by [@&#8203;sandydoo](https://github.com/sandydoo) in [#&#8203;228](cachix/install-nix-action#228)

##### New Contributors

- [@&#8203;msgilligan](https://github.com/msgilligan) made their first contribution in [#&#8203;221](cachix/install-nix-action#221)

**Full Changelog**: <cachix/install-nix-action@v30...v31.0.0>

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

[Compare Source](cachix/install-nix-action@v29...v30)

- Nix: 2.24.7 -> 2.24.9, fixing [GHSA-6fjr-mq49-mm2c](GHSA-6fjr-mq49-mm2c)

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

[Compare Source](cachix/install-nix-action@V28...v29)

Bumps Nix to [2.24.7](https://nix.dev/manual/nix/2.24/release-notes/rl-2.24)

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

[Compare Source](cachix/install-nix-action@v27...V28)

Nix 2.24.6 - <GHSA-h4vv-h3jq-v493>

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- 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:eyJjcmVhdGVkSW5WZXIiOiI0NC4zOS4yIiwidXBkYXRlZEluVmVyIjoiNDQuNDkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->Reviewed-on: https://git.web.home.dark-link.info/waldemar/nixos-common/pulls/12

Co-authored-by: Renovate Bot <renovate@home.lab>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants