Commit Graph

13 Commits

Author SHA1 Message Date
Jamie Tanna 521d325afd fix(manager/nix): quote GitHub token in flake update command
A malicious Host Rule could be crafted to inject shell metacharacters
which could lead to command execution, we can make sure they are quoted
appropriately.

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2026-08-07 14:22:55 +01:00
Jamie Tanna 2d1e57532f refactor(types): rename lockFile to fileName in ArtifactError (#41631)
As `fileName` makes more sense (as it's not always a lock file we're
updating).

Also, if you set `fileName`, it would never actually output the
filename.

This renames the usages of `lockFile` to `fileName`.

Co-authored-by: Claude Sonnet 4.5 <jamie.tanna+github-copilot@mend.io>
2026-03-10 09:57:31 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Trevor Allen c7eabc09c5 fix(nix): fix flake lock refresh (#37222)
* fix(nix): flake lock refresh

* fix(nix): handle nixpkgs upgrades with not explicit ref correct

* Remove fileMatch hack

* Force lock file updates for nix

* Support new lockable channel

as requested by @Mic92

* Fix lints

* Remove hack and set rangeStrategy instead

* Fix tests

* Add example comments

* Use codeBlock, inline fixtures

* Add test back which went missing while merging

* Simplify code

* Fix tests

* Fix undefined being displayed in dashboard

* revert: Fix undefined being displayed in dashboard

* fix(nix): use lockedVersion, fake confirmations and conditionally set currentValue

* test(nix): check for lockedVersion instead of currentDigest, remove rangeStrategy

* fix: only replace digest

* fix: make sure flake.nix contains new digest

* fix: replace deprecated update-input with flake update

* fix: update tests

* fix: only set lockedVersion for lockable tarballs, cleanup

* fix: don't use special versioning

* fix: get nixpkgs currentValue in tarballs

* test: fill in code coverage gaps

* test: fill in more code coverage gaps

* fix: use correct extract type

* test: improve code coverage

* test: explicitly check flakeLocked and flakeOriginal to see what isn't being covered

* fix: check both original and locked inputs for bad types

* test: add missing root

* Update lib/modules/manager/nix/extract.ts

Co-authored-by: Joshua Spence <josh@spence.com.au>

* Update lib/modules/manager/nix/extract.ts

Co-authored-by: Joshua Spence <josh@spence.com.au>

* fix: explicitly set log messages

* Update lib/modules/manager/nix/extract.ts

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Update lib/modules/manager/nix/extract.ts

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Update lib/modules/manager/nix/extract.ts

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

---------

Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
Co-authored-by: Joshua Spence <josh@spence.com.au>
Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
2025-11-03 22:03:37 +00:00
RahulGautamSingh 80b7cdf1e0 refactor(util): move user env to util folder (#35103) 2025-04-02 10:27:27 +00:00
Sandro 814a93a58c fix(nix): simplify --extra-experimental-features argument (#32289) 2024-11-02 06:11:29 +00:00
RahulGautamSingh 2194142f78 feat(config): support user configured env (#27028)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-02-22 05:05:05 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Maxime Brunet 878e3c5cd4 fix(nix): trim x-access-token: prefix from Github token (#23884) 2023-08-16 05:05:01 +00:00
Jamie Magee 19ce28ccec fix(managers/nix): pass github token to nix (#21568) 2023-05-03 16:08:57 +00:00
Michael Kriese 73be295310 feat(core): centralize sidecar image usage (#19545) 2022-12-23 09:45:15 +00:00
Jamie Magee 44d953737d feat(manager/nix): add support for nix package manager (#18727)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-11-11 23:45:46 +00:00