110 Commits

Author SHA1 Message Date
8ab172dca7 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.796699%2Brev-dda3dcd3fe03e991015e9a74b22d35950f264a54/0196b263-02b0-7dec-8aca-c2506ed2485f/source.tar.gz?narHash=sha256-Ua0drDHawlzNqJnclTJGf87dBmaO/tn7iZ%2BTCkTRpRc%3D' (2025-05-08)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.814309%2Brev-ee930f9755f58096ac6e8ca94a1887e0534e2d81/01976d76-ca1f-7eaa-bdc7-ea929d2f1723/source.tar.gz?narHash=sha256-Kh9K4taXbVuaLC0IL%2B9HcfvxsSUx8dPB5s5weJcc9pc%3D' (2025-06-13)
2025-06-15 20:04:42 +00:00
8c3783d80e make action rely on gitea CPR
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2025-06-08 00:00:52 +00:00
35f8017474 add upstream sync
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2025-06-08 00:00:52 +00:00
10cfb1c664 Merge pull request #188 from detsys-pr-bot/detsys-ts-update-4bf247b1cb6b057abe94721ea1bfa131618e2b7f
Update `detsys-ts`: Merge pull request #97 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-a9a1a26a5c
2025-06-02 11:55:17 -07:00
a1bf79f72f Update detsys-ts for: Merge pull request #97 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-a9a1a26a5c (4bf247b1cb6b057abe94721ea1bfa131618e2b7f) 2025-06-02 18:51:34 +00:00
c115b81c59 Merge pull request #187 from DeterminateSystems/grahamc-patch-1
Fixup workflow name
2025-05-28 11:01:29 -04:00
2ca76c3436 Fixup workflow name 2025-05-28 10:52:49 -04:00
a3640124cb Merge pull request #186 from DeterminateSystems/push-yonuoxmrqwmz
Update the readme to account for minimum mandatory permissions
2025-05-28 10:10:46 -04:00
5681a56ca1 Update the readme to account for minimum mandatory permissions 2025-05-28 09:52:01 -04:00
428c2b58a4 Merge pull request #181 from DeterminateSystems/update_flake_lock_action
flake.lock: Update
2025-05-16 09:33:39 -04:00
3690f88382 Merge pull request #185 from detsys-pr-bot/detsys-ts-update-74999c82de35e73feb13af2c0e0c3ebb92a17c66
Update `detsys-ts`: Merge pull request #95 from DeterminateSystems/graham/fh-813-create-a-determinate-nix-action-with-pinned-releases
2025-05-15 17:16:48 -04:00
94658602a6 Update detsys-ts for: Merge pull request #95 from DeterminateSystems/graham/fh-813-create-a-determinate-nix-action-with-pinned-releases (74999c82de35e73feb13af2c0e0c3ebb92a17c66) 2025-05-15 21:13:42 +00:00
2a2fe68d85 Merge pull request #184 from DeterminateSystems/graham/fh-813-create-a-determinate-nix-action-with-pinned-releases
Update to use our new nix action
2025-05-15 15:04:37 -04:00
e9a7860f3f Add permissions block 2025-05-15 14:02:49 -04:00
acec67c2bb Merge remote-tracking branch 'origin/main' into graham/fh-813-create-a-determinate-nix-action-with-pinned-releases 2025-05-15 13:35:44 -04:00
3ed2353766 Update to use our new nix action 2025-05-15 13:23:35 -04:00
11e4dfb59a Merge pull request #183 from DeterminateSystems/push-ruywpoonkxqk
Don't except if nix flake update fails
2025-05-13 09:32:50 -04:00
dcd2ee07ca Don't except if nix flake update fails 2025-05-13 09:29:56 -04:00
743a8831c3 Merge pull request #182 from detsys-pr-bot/detsys-ts-update-e0a5f196fd4e17f2ba1d6ad03300fe532717f7e8
Update `detsys-ts`: Merge pull request #94 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-dde80b0a8d
2025-05-12 07:13:03 -03:00
5a493253cd Update detsys-ts for: Merge pull request #94 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-dde80b0a8d (e0a5f196fd4e17f2ba1d6ad03300fe532717f7e8) 2025-05-12 10:11:50 +00:00
a29375a98c flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.793418%2Brev-7a2622e2c0dbad5c4493cb268aba12896e28b008/0196974c-148c-7984-8656-db70973db21b/source.tar.gz?narHash=sha256-MHmBH2rS8KkRRdoU/feC/dKbdlMkcNkB5mwkuipVHeQ%3D' (2025-05-03)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.796699%2Brev-dda3dcd3fe03e991015e9a74b22d35950f264a54/0196b263-02b0-7dec-8aca-c2506ed2485f/source.tar.gz?narHash=sha256-Ua0drDHawlzNqJnclTJGf87dBmaO/tn7iZ%2BTCkTRpRc%3D' (2025-05-08)
2025-05-11 00:01:45 +00:00
6f149b7268 Merge pull request #180 from detsys-pr-bot/detsys-ts-update-87c69ec3d48cb353229e74cc2ba8abdef2eb2590
Update `detsys-ts`: Merge pull request #93 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-a403fbca50
2025-05-04 21:43:26 -03:00
5d4194e238 Update detsys-ts for: Merge pull request #93 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-a403fbca50 (87c69ec3d48cb353229e74cc2ba8abdef2eb2590) 2025-05-05 00:38:01 +00:00
632f41e585 Merge pull request #179 from DeterminateSystems/update_flake_lock_action
flake.lock: Update
2025-05-04 09:58:16 -03:00
f033bc83d7 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.789333%2Brev-f771eb401a46846c1aebd20552521b233dd7e18b/0196700d-bbc8-7163-b0e7-e264f34c251e/source.tar.gz?narHash=sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA%3D' (2025-04-24)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.793418%2Brev-7a2622e2c0dbad5c4493cb268aba12896e28b008/0196974c-148c-7984-8656-db70973db21b/source.tar.gz?narHash=sha256-MHmBH2rS8KkRRdoU/feC/dKbdlMkcNkB5mwkuipVHeQ%3D' (2025-05-03)
2025-05-04 00:02:19 +00:00
c28c313ee6 Merge pull request #177 from detsys-pr-bot/detsys-ts-update-19c948d15e766687225515331fbebc216a14ed06
Update `detsys-ts`: Merge pull request #92 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-de653eece3
2025-04-30 15:43:25 -03:00
de73a6ec43 Update detsys-ts for: Merge pull request #92 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-de653eece3 (19c948d15e766687225515331fbebc216a14ed06) 2025-04-30 18:42:02 +00:00
191583413a Merge pull request #176 from detsys-pr-bot/detsys-ts-update-56f4abb7182a0f8d5b5e0519eb9dc37bdd5c46e1
Update `detsys-ts`: Update Nix and JS dependencies (#91)
2025-04-27 14:54:23 -03:00
a7d610b592 Merge branch 'main' into detsys-ts-update-56f4abb7182a0f8d5b5e0519eb9dc37bdd5c46e1 2025-04-27 14:53:14 -03:00
f1ea6b125e Merge pull request #175 from DeterminateSystems/update_flake_lock_action
flake.lock: Update
2025-04-27 13:50:37 -04:00
355885e85b Update detsys-ts for: Update Nix and JS dependencies (#91) (56f4abb7182a0f8d5b5e0519eb9dc37bdd5c46e1) 2025-04-27 17:47:01 +00:00
17889577d9 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.785698%2Brev-b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef/0196495e-a6ea-7da5-be44-0ab8d91943f4/source.tar.gz?narHash=sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU%3D' (2025-04-17)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.789333%2Brev-f771eb401a46846c1aebd20552521b233dd7e18b/0196700d-bbc8-7163-b0e7-e264f34c251e/source.tar.gz?narHash=sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA%3D' (2025-04-24)
2025-04-27 00:02:04 +00:00
e0f01aff56 Merge pull request #173 from DeterminateSystems/update_flake_lock_action
flake.lock: Update
2025-04-20 22:24:01 -03:00
6f83ef312f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.781462%2Brev-f675531bc7e6657c10a18b565cfebd8aa9e24c14/019624ad-56cd-7f8b-93ed-52e57165b6b6/source.tar.gz?narHash=sha256-gbl9hE39nQRpZaLjhWKmEu5ejtQsgI5TWYrIVVJn30U%3D' (2025-04-09)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.785698%2Brev-b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef/0196495e-a6ea-7da5-be44-0ab8d91943f4/source.tar.gz?narHash=sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU%3D' (2025-04-17)
2025-04-20 00:02:00 +00:00
68fc9d463e Merge pull request #172 from DeterminateSystems/determinate-nix-example
Use Determinate Nix in examples
2025-04-18 20:59:48 -03:00
8df4e70f64 Merge branch 'main' into determinate-nix-example 2025-04-18 17:49:37 -03:00
ad4544a038 Use Determinate Nix in examples 2025-04-18 15:23:17 -03:00
f258f6b8ca Merge pull request #170 from DeterminateSystems/update_flake_lock_action
flake.lock: Update
2025-04-18 15:07:42 -03:00
149faa1ed4 Merge branch 'main' into update_flake_lock_action 2025-04-18 15:06:35 -03:00
84feadbac6 Merge pull request #171 from detsys-pr-bot/detsys-ts-update-f42f6003b4044fede4681778f76342e523671e8f
Update `detsys-ts`: Merge pull request #89 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-0b8d2803d6
2025-04-13 23:45:02 -03:00
867f274467 Update detsys-ts for: Merge pull request #89 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-0b8d2803d6 (f42f6003b4044fede4681778f76342e523671e8f) 2025-04-14 02:29:57 +00:00
605b78f787 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.770807%2Brev-a84ebe20c6bc2ecbcfb000a50776219f48d134cc/0195b626-8c1d-7fb9-9282-563af3d37ab9/source.tar.gz?narHash=sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ%3D' (2025-03-19)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.781462%2Brev-f675531bc7e6657c10a18b565cfebd8aa9e24c14/019624ad-56cd-7f8b-93ed-52e57165b6b6/source.tar.gz?narHash=sha256-gbl9hE39nQRpZaLjhWKmEu5ejtQsgI5TWYrIVVJn30U%3D' (2025-04-09)
2025-04-13 00:25:51 +00:00
1a5f8176b6 Merge pull request #169 from detsys-pr-bot/detsys-ts-update-b74bedb84e9116fefbbfd723260f374080249d48
Update `detsys-ts`: Merge pull request #88 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-b7c6efa8f1
2025-04-11 13:10:07 -03:00
43e7b633e9 Update detsys-ts for: Merge pull request #88 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-b7c6efa8f1 (b74bedb84e9116fefbbfd723260f374080249d48) 2025-04-11 16:08:49 +00:00
7689af81f5 Merge pull request #168 from detsys-pr-bot/detsys-ts-update-e31aa55518cae49b58723c152c6d0e46ee223ec1
Update `detsys-ts`: Merge pull request #87 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-2f3c1638ee
2025-04-06 22:27:06 -03:00
b81e46d8dd Update detsys-ts for: Merge pull request #87 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-2f3c1638ee (e31aa55518cae49b58723c152c6d0e46ee223ec1) 2025-04-07 01:17:09 +00:00
edf12a038d Merge pull request #167 from detsys-pr-bot/detsys-ts-update-dc7c6d9c7a5d2db79ddc6eccf57d5fc09a391347
Update `detsys-ts`: Merge pull request #86 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-2bd33993d4
2025-04-04 12:20:55 -04:00
97278a027b Update detsys-ts for: Merge pull request #86 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-2bd33993d4 (dc7c6d9c7a5d2db79ddc6eccf57d5fc09a391347) 2025-04-04 16:19:32 +00:00
062b9f53fa Merge pull request #166 from detsys-pr-bot/detsys-ts-update-79634332de50a2cde17cf8d6fe41258af3d4bedf
Update `detsys-ts`: Bump vite from 6.2.3 to 6.2.4 in the npm_and_yarn group (#85)
2025-03-31 16:30:23 -04:00
84d025eee7 Update detsys-ts for: Bump vite from 6.2.3 to 6.2.4 in the npm_and_yarn group (#85) (79634332de50a2cde17cf8d6fe41258af3d4bedf) 2025-03-31 19:40:03 +00:00
2eaf7beabb Merge pull request #165 from detsys-pr-bot/detsys-ts-update-3ef4baee587df9fe98f70036386e361fa0d6dc7e
Update `detsys-ts`: Merge pull request #84 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-73588cc3c5
2025-03-31 08:52:32 -04:00
2a1e64c750 Update detsys-ts for: Merge pull request #84 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-73588cc3c5 (3ef4baee587df9fe98f70036386e361fa0d6dc7e) 2025-03-31 02:51:54 +00:00
c319d26b5f Merge pull request #164 from DeterminateSystems/dependabot/github_actions/crazy-max/ghaction-import-gpg-6.3.0
build(deps): bump crazy-max/ghaction-import-gpg from 6.2.0 to 6.3.0
2025-03-30 21:52:52 -04:00
37001efe5b build(deps): bump crazy-max/ghaction-import-gpg from 6.2.0 to 6.3.0
Bumps [crazy-max/ghaction-import-gpg](https://github.com/crazy-max/ghaction-import-gpg) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/crazy-max/ghaction-import-gpg/releases)
- [Commits](cb9bde2e25...e89d40939c)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-import-gpg
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 01:42:56 +00:00
f319391080 Merge pull request #163 from detsys-pr-bot/detsys-ts-update-07c7fc924119a8d9879c1c164ae593049d47f648
Update `detsys-ts`: Ignore hyphen-sep'd diags (#83)
2025-03-28 13:50:47 -04:00
7f50ffb42b Update detsys-ts for: Ignore hyphen-sep'd diags (#83) (07c7fc924119a8d9879c1c164ae593049d47f648) 2025-03-28 17:47:57 +00:00
c6435de337 Merge pull request #162 from detsys-pr-bot/detsys-ts-update-03533d37dcd46f34d9e99385e665615b221a30d9
Update `detsys-ts`: Merge pull request #82 from DeterminateSystems/even-more-crashes
2025-03-28 10:19:29 -04:00
01b415ecee Update detsys-ts for: Merge pull request #82 from DeterminateSystems/even-more-crashes (03533d37dcd46f34d9e99385e665615b221a30d9) 2025-03-28 14:10:22 +00:00
42aa906d7f Merge pull request #161 from detsys-pr-bot/detsys-ts-update-8d9725c4856301321cd2508f5b8725cfb99366e2
Update `detsys-ts`: Merge pull request #81 from DeterminateSystems/dont-capture-some-crashes
2025-03-27 12:00:09 -04:00
8b0105d445 Update detsys-ts for: Merge pull request #81 from DeterminateSystems/dont-capture-some-crashes (8d9725c4856301321cd2508f5b8725cfb99366e2) 2025-03-27 15:57:16 +00:00
9e4b6cbbef Merge pull request #160 from detsys-pr-bot/detsys-ts-update-38df301720b69972f084538dd44c181269f264b0
Update `detsys-ts`: Merge pull request #80 from DeterminateSystems/fixup-traces
2025-03-27 11:09:14 -03:00
43a3cfc807 Update detsys-ts for: Merge pull request #80 from DeterminateSystems/fixup-traces (38df301720b69972f084538dd44c181269f264b0) 2025-03-27 13:47:43 +00:00
97b24ed38a Merge pull request #159 from DeterminateSystems/esbuild
pnpm update, vitest
2025-03-26 11:32:24 -04:00
c7af1d9132 pnpm update, vitest 2025-03-26 11:18:26 -04:00
ae207e3462 Merge pull request #158 from detsys-pr-bot/detsys-ts-update-cf33e9577ca7571bf9ebbfe298b4e3e457a58813
Update `detsys-ts`: Merge pull request #79 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-14f44f5325
2025-03-26 09:59:58 -03:00
6b57c8dc27 Update detsys-ts for: Merge pull request #79 from DeterminateSystems/dependabot/npm_and_yarn/npm_and_yarn-14f44f5325 (cf33e9577ca7571bf9ebbfe298b4e3e457a58813) 2025-03-26 12:31:56 +00:00
e680567e78 Merge pull request #157 from DeterminateSystems/flakehub-cache-action 2025-03-24 15:51:20 -03:00
6981b122f5 Merge pull request #155 from DeterminateSystems/update_flake_lock_action
flake.lock: Update
2025-03-24 15:13:29 -03:00
1666ee39f3 Reformat and regenerate 2025-03-24 15:12:06 -03:00
6530cb6c3e Merge remote-tracking branch 'origin/main' into update_flake_lock_action 2025-03-24 15:10:43 -03:00
3a90118afa Switch to flakehub-cache-action 2025-03-24 00:52:44 -03:00
460b95a768 Merge pull request #156 from detsys-pr-bot/detsys-ts-update-9d2b0e4636787bba8b886ddc720f007850e541fb
Update `detsys-ts`: Merge pull request #78 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-0af3b8ec11
2025-03-24 00:50:40 -03:00
ae18c965c1 Update detsys-ts for: Merge pull request #78 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-0af3b8ec11 (9d2b0e4636787bba8b886ddc720f007850e541fb) 2025-03-24 01:42:29 +00:00
1d8d1b0210 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.614481%2Brev-5c24cf2f0a12ad855f444c30b2421d044120c66f/018efa00-a443-7f41-b371-ce568b5c7e9f/source.tar.gz?narHash=sha256-XtTSSIB2DA6tOv%2Bl0FhvfDMiyCmhoRbNB%2B0SeInZkbk%3D' (2024-04-19)
  → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.770807%2Brev-a84ebe20c6bc2ecbcfb000a50776219f48d134cc/0195b626-8c1d-7fb9-9282-563af3d37ab9/source.tar.gz?narHash=sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ%3D' (2025-03-19)
2025-03-23 00:02:08 +00:00
d58eff8f1d Merge pull request #152 from detsys-pr-bot/detsys-ts-update-4c7ff9706e6466d7c03c58a3479ed212d6ffb5ba
Update `detsys-ts`: Merge pull request #74 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-eb3d92718e
2025-03-19 17:26:39 -04:00
8d81dfe006 Update detsys-ts for: Merge pull request #74 from DeterminateSystems/dependabot/npm_and_yarn/npm-deps-eb3d92718e (4c7ff9706e6466d7c03c58a3479ed212d6ffb5ba) 2025-03-19 21:20:59 +00:00
f71609bc55 Merge pull request #138 from DeterminateSystems/dependabot/github_actions/crazy-max/ghaction-import-gpg-6.2.0
build(deps): bump crazy-max/ghaction-import-gpg from 6.1.0 to 6.2.0
2025-03-19 16:14:03 -04:00
a522afcccd Merge pull request #149 from detsys-pr-bot/detsys-ts-update-c54767c24f0861de794605b03ed5604546d4a337
Update `detsys-ts`: Merge pull request #72 from DeterminateSystems/dependabot
2025-03-19 16:13:04 -04:00
8368f542ad Update detsys-ts for: Merge pull request #72 from DeterminateSystems/dependabot (c54767c24f0861de794605b03ed5604546d4a337) 2025-03-19 20:11:07 +00:00
86cbeff68e Merge pull request #148 from DeterminateSystems/simpler-instructions
Update the text with much simpler 'run ci' instructions.
2025-03-19 12:26:28 -04:00
e64717fb04 Update action.yml
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
2025-03-19 12:25:15 -04:00
d99e45a16b Update the text with much simpler 'run ci' instructions. 2025-03-19 12:13:08 -04:00
208d8b0fa4 Merge pull request #146 from detsys-pr-bot/detsys-ts-update-b3319a2c78c46d5ad6bc00d3453266d3d9fdde44
Update `detsys-ts`: Merge pull request #71 from DeterminateSystems/updates
2025-02-06 11:49:44 -05:00
183c83b4bc Update detsys-ts for: Merge pull request #71 from DeterminateSystems/updates (b3319a2c78c46d5ad6bc00d3453266d3d9fdde44) 2025-02-06 16:47:41 +00:00
0ba1118664 Merge pull request #144 from detsys-pr-bot/detsys-ts-update-eb87094f35072ac911526ad052c3437c9e0c42d6
Update `detsys-ts`: Merge pull request #69 from DeterminateSystems/update-deps
2024-11-26 11:31:58 -05:00
236c0fa397 Update detsys-ts for: Merge pull request #69 from DeterminateSystems/update-deps (eb87094f35072ac911526ad052c3437c9e0c42d6) 2024-11-20 18:57:29 +00:00
8fa6d41e3f Merge pull request #141 from DeterminateSystems/colemickens/pr-url
action.yml: expose pull-request-url from create-pr action
2024-11-08 14:50:46 -05:00
1360662aa3 action.yml: expose pull-request-url from create-pr action 2024-11-08 11:34:36 -08:00
531bd45244 Merge pull request #139 from detsys-pr-bot/detsys-ts-update-4280bc94c9545f31ccf08001cc16f20ccb91b770
Update `detsys-ts`: Merge pull request #67 from DeterminateSystems/allow-obliterating-id-token-privs
2024-11-06 14:56:02 -05:00
1afac295f9 Update detsys-ts for: Merge pull request #67 from DeterminateSystems/allow-obliterating-id-token-privs (4280bc94c9545f31ccf08001cc16f20ccb91b770) 2024-11-06 19:43:49 +00:00
1cc1733537 build(deps): bump crazy-max/ghaction-import-gpg from 6.1.0 to 6.2.0
Bumps [crazy-max/ghaction-import-gpg](https://github.com/crazy-max/ghaction-import-gpg) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/crazy-max/ghaction-import-gpg/releases)
- [Commits](01dd5d3ca4...cb9bde2e25)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-import-gpg
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 01:50:01 +00:00
965531f332 build(deps-dev): bump vite from 5.2.12 to 5.4.6 (#131)
* build(deps-dev): bump vite from 5.2.12 to 5.4.6

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.12 to 5.4.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* pnpm i

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
2024-09-19 16:42:07 +00:00
a2bbe0274e Merge pull request #128 from detsys-pr-bot/detsys-ts-update-65dd73c562ac60a068340f8e0c040bdcf2c59afe
Update `detsys-ts`: Merge pull request #63 from DeterminateSystems/retry-streams
2024-09-04 14:14:50 -04:00
802501548e Update detsys-ts for: Merge pull request #63 from DeterminateSystems/retry-streams (65dd73c562ac60a068340f8e0c040bdcf2c59afe) 2024-09-04 18:05:28 +00:00
7d80c329b4 Merge pull request #126 from detsys-pr-bot/detsys-ts-update-817e4d4123b6fb4eae5aa557658f25f8539e7240
Update `detsys-ts`: Merge pull request #62 from DeterminateSystems/dont-pull-microstackshots
2024-08-26 19:46:57 -04:00
7bc6ec59cc Update detsys-ts for: Merge pull request #62 from DeterminateSystems/dont-pull-microstackshots (817e4d4123b6fb4eae5aa557658f25f8539e7240) 2024-08-26 15:26:03 +00:00
4cf6b19203 Merge pull request #125 from detsys-pr-bot/detsys-ts-update-e8f6e8f54d85aa0fd3d0b694dd3279a21497a33b
Update `detsys-ts`: Merge pull request #61 from DeterminateSystems/use-coalesce-for-array
2024-08-26 10:09:12 -04:00
73ba0ca899 Update detsys-ts for: Merge pull request #61 from DeterminateSystems/use-coalesce-for-array (e8f6e8f54d85aa0fd3d0b694dd3279a21497a33b) 2024-08-26 14:05:27 +00:00
24f53daa86 Merge pull request #124 from detsys-pr-bot/detsys-ts-update-cf1897a891edc164a8240f469cd56d14364e6be1
Update `detsys-ts`: Merge pull request #58 from DeterminateSystems/collect-crash-logs
2024-08-26 09:41:53 -04:00
420fb2aaf7 Update detsys-ts for: Merge pull request #58 from DeterminateSystems/collect-crash-logs (cf1897a891edc164a8240f469cd56d14364e6be1) 2024-08-26 13:31:25 +00:00
db4ee38117 Fixup support for Nix 2.23.0 and later 2024-06-28 14:11:30 -07:00
b0723e0fae Add instructions for new fine grained GitHub PAT 2024-06-18 09:23:51 -07:00
af9a980c7d Lock third-party actions
A caller of this action can lock this action to a specific commit. However because the action itself does not lock its dependent actions to a specific commit this opens the end-user up to possible supply-chain attacks if the dependent actions rewrite their tags.

This PR changes all third party actions to be explicitly locked.

Dependabot will still work and update these hashes for you


I also suggest installing https://github.com/ossf/scorecard in this repo. It will report about these kind of issues.

Note that you should in turn have to audit all the third party deps of the actions that your action depends on. In general this is all a bit of a mess and GitHub's security model is very meh

e.g. see https://github.com/ossf/scorecard/issues/2189
2024-06-18 09:17:15 -07:00
ed0fe829d8 Merge pull request #115 from detsys-pr-bot/detsys-ts-update-bc45b6c0a6318ae30192c4bf23a73dc879bdb632
Update `detsys-ts`:
2024-06-05 16:19:34 -07:00
278b2c0e02 Merge pull request #114 from detsys-pr-bot/detsys-ts-update-515d00bc192ae4460e2122572ebc24020c58ea95
Update detsys-ts: Merge pull request #51 from DeterminateSystems/add-missing-actions-to-update-matrix

Add missing Actions to update matrix
2024-06-05 15:48:14 -07:00
1b00b724a5 Regenerate dist 2024-06-05 15:46:52 -07:00
23e86b41e2 Merge pull request #116 from detsys-pr-bot/detsys-ts-update-856a75af22949b76e23f6e54a1b4d27d8816cea4
Update `detsys-ts`: Merge pull request #113 from DeterminateSystems/update-detsys-ts-status-page
2024-06-05 18:06:07 -04:00
b8b46eb7bb Update detsys-ts for: Merge pull request #113 from DeterminateSystems/update-detsys-ts-status-page (856a75af22949b76e23f6e54a1b4d27d8816cea4) 2024-06-05 21:59:53 +00:00
50c97e1435 Update detsys-ts for: ` (bc45b6c0a6318ae30192c4bf23a73dc879bdb632`) 2024-06-05 21:32:11 +00:00
d777dd2ba4 Update detsys-ts for: Merge pull request #51 from DeterminateSystems/add-missing-actions-to-update-matrix
Add missing Actions to update matrix (515d00bc192ae4460e2122572ebc24020c58ea95)
2024-06-05 21:06:52 +00:00
14 changed files with 39146 additions and 42371 deletions

View File

@ -1,4 +1,5 @@
name: CI name: CI
on: on:
pull_request: pull_request:
push: push:
@ -6,15 +7,22 @@ on:
jobs: jobs:
typescript-action: typescript-action:
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Install Nix - name: Check Nixpkgs
uses: DeterminateSystems/nix-installer-action@main uses: DeterminateSystems/flake-checker-action@main
- name: Enable magic Nix cache with:
uses: DeterminateSystems/magic-nix-cache-action@main fail-mode: true
- name: Install Determinate Nix
uses: DeterminateSystems/determinate-nix-action@v3
- name: Enable FlakeHub Cache
uses: DeterminateSystems/flakehub-cache-action@main
- name: Install pnpm dependencies - name: Install pnpm dependencies
run: nix develop --command pnpm install run: nix develop --command pnpm install
- name: Check formatting - name: Check formatting

View File

@ -1,4 +1,5 @@
name: update-flake-lock name: update-flake-lock
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
@ -6,16 +7,17 @@ on:
jobs: jobs:
lockfile: lockfile:
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@main uses: DeterminateSystems/determinate-nix-action@v3
- name: Enable magic Nix cache - name: Enable FlakeHub Cache
uses: DeterminateSystems/magic-nix-cache-action@main uses: DeterminateSystems/flakehub-cache-action@main
- name: Check flake
uses: DeterminateSystems/flake-checker-action@main
- name: Update flake.lock - name: Update flake.lock
uses: ./. uses: ./.
with: with:

18
.github/workflows/upstream_sync.yml vendored Normal file
View File

@ -0,0 +1,18 @@
# .github/workflows/sync.yml
name: Rebase Upstream
on:
schedule:
- cron: "0 0 * * 0" # run once a week
workflow_dispatch: # run manually
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 10 # greater than the number of commits you made
- uses: imba-tjd/rebase-upstream-action@master
with: # all args are optional
upstream: DeterminateSystems/update-flake-lock
branch: main

View File

@ -1,4 +1,5 @@
name: CI name: CI
on: on:
pull_request: pull_request:
push: push:
@ -6,7 +7,7 @@ on:
jobs: jobs:
validate: validate:
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:

155
README.md
View File

@ -1,32 +1,37 @@
# update-flake-lock # update-flake-lock
This is a GitHub Action that will update your flake.lock file whenever it is run. This is a GitHub Action that updates the [`flake.lock`][lockfile] file for your [Nix flake][flakes] whenever it is run.
> **NOTE:** As of v3, this action will no longer automatically install Nix to the action runner. You **MUST** set up a Nix with flakes support enabled prior to running this action, or your workflow will not function as expected. > [!NOTE]
> As of v3, this action no longer automatically installs [Determinate Nix][det-nix] to the action runner.
> You **must** set up Nix with flakes support enabled prior to running this action or your workflow will not function as expected.
## Example ## Example
An example GitHub Action workflow using this action would look like the following: Here's an example GitHub Action workflow using this Action:
```yaml ```yaml
name: update-flake-lock name: "Flake.lock: update Nix dependencies"
on: on:
workflow_dispatch: # allows manual triggering workflow_dispatch: # allows manual triggering
schedule: schedule:
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
jobs: jobs:
lockfile: nix-flake-update:
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - uses: actions/checkout@v4
uses: actions/checkout@v4 - uses: DeterminateSystems/determinate-nix-action@v3
- name: Install Nix - uses: DeterminateSystems/update-flake-lock@main
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with: with:
pr-title: "Update flake.lock" # Title of PR to be created pr-title: "Update Nix flake inputs" # Title of PR to be created
pr-labels: | # Labels to be set on the PR pr-labels: | # Labels to be set on the PR
dependencies dependencies
automated automated
@ -34,12 +39,14 @@ jobs:
## Example updating specific input(s) ## Example updating specific input(s)
> **NOTE**: If any inputs have a stale reference (e.g. the lockfile thinks a git input wants its "ref" to be "nixos-unstable", but the flake.nix specifies "nixos-unstable-small"), they will also be updated. At this time, there is no known workaround. > [!NOTE]
> If any inputs have a stale reference (e.g. the lockfile thinks a git input wants its "ref" to be "nixos-unstable", but the flake.nix specifies "nixos-unstable-small"), they are also updated. At this time, there is no known workaround.
It is also possible to update specific inputs by specifying them in a space-separated list: It's also possible to update specific [flake inputs][inputs] by specifying them in a space-separated list:
```yaml ```yaml
name: update-flake-lock name: update-flake-lock
on: on:
workflow_dispatch: # allows manual triggering workflow_dispatch: # allows manual triggering
schedule: schedule:
@ -51,17 +58,17 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@v1 uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock - name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@vX uses: DeterminateSystems/update-flake-lock@main
with: with:
inputs: input1 input2 input3 inputs: input1 input2 input3
``` ```
## Example adding options to nix command ## Example adding options to nix command
It is also possible to use specific options to the nix command in a space separated list: It's also possible to use specific options to the `nix` command in a space-separated list:
```yaml ```yaml
name: update-flake-lock name: update-flake-lock
@ -76,10 +83,10 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@v1 uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock - name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@vX uses: DeterminateSystems/update-flake-lock@main
with: with:
nix-options: --debug --log-format raw nix-options: --debug --log-format raw
``` ```
@ -99,11 +106,11 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@v1 uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock - name: Update flake.lock
id: update id: update
uses: DeterminateSystems/update-flake-lock@vX uses: DeterminateSystems/update-flake-lock@main
with: with:
inputs: input1 input2 input3 inputs: input1 input2 input3
- name: Print PR number - name: Print PR number
@ -128,11 +135,11 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@v1 uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock - name: Update flake.lock
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
uses: DeterminateSystems/update-flake-lock@vX uses: DeterminateSystems/update-flake-lock@main
with: with:
inputs: input1 input2 input3 inputs: input1 input2 input3
path-to-flake-dir: 'nix/' # in this example our flake doesn't sit at the root of the repository, it sits under 'nix/flake.nix' path-to-flake-dir: 'nix/' # in this example our flake doesn't sit at the root of the repository, it sits under 'nix/flake.nix'
@ -155,37 +162,30 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@v1 uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock - name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@vX uses: DeterminateSystems/update-flake-lock@main
with: with:
git-author-name: 'Jane Author' git-author-name: Jane Author
git-author-email: 'github-actions[bot]@users.noreply.github.com' git-author-email: github-actions[bot]@users.noreply.github.com
git-committer-name: 'John Committer' git-committer-name: John Committer
git-committer-email: 'github-actions[bot]@users.noreply.github.com' git-committer-email: github-actions[bot]@users.noreply.github.com
``` ```
## Running GitHub Actions CI ## Running GitHub Actions CI
GitHub Actions will not run workflows when a branch is pushed by or a PR is opened by a GitHub Action. There are two ways to have GitHub Actions CI run on a PR submitted by this action. GitHub Actions doesn't run workflows when a branch is pushed by or a PR is opened by a GitHub Action.
There are two ways to have GitHub Actions CI run on a PR submitted by this action.
### Without a Personal Authentication Token ### Without a Personal Authentication Token
Without using a Personal Authentication Token, you can manually run the following to kick off a CI run: Without using a Personal Authentication Token, close and reopen the pull request manually to kick off CI.
```
git branch -D update_flake_lock_action
git fetch origin
git checkout update_flake_lock_action
git commit --amend --no-edit
git push origin update_flake_lock_action --force
```
### With a Personal Authentication Token ### With a Personal Authentication Token
By providing a Personal Authentication Token, the PR will be submitted in a way that bypasses this limitation (GitHub will essentially think it is the owner of the PAT submitting the PR, and not an Action). By providing a Personal Authentication Token, the PR is submitted in a way that bypasses this limitation (GitHub essentially thinks it's the owner of the PAT submitting the PR, and not an Action).
You can create a token by visiting https://github.com/settings/tokens and select at least the `repo` scope. Then, store this token in your repository secrets (i.e. `https://github.com/<USER>/<REPO>/settings/secrets/actions`) as `GH_TOKEN_FOR_UPDATES` and set up your workflow file like the following: You can create a token by visiting https://github.com/settings/tokens and select at least the `repo` scope. For the new fine-grained tokens, you need to enable read and write access for "Contents" and "Pull Requests" permissions. Then, store this token in your repository secrets (i.e. `https://github.com/<USER>/<REPO>/settings/secrets/actions`) as `GH_TOKEN_FOR_UPDATES` and set up your workflow file like the following:
```yaml ```yaml
name: update-flake-lock name: update-flake-lock
@ -200,30 +200,34 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@v1 uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock - name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@vX uses: DeterminateSystems/update-flake-lock@main
with: with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
``` ```
## With GPG commit signing ## With GPG commit signing
It's possible for the bot to produce GPG signed commits. Associating a GPG public key to a github user account is not required but it is necessary if you want the signed commits to appear as verified in Github. This can be a compliance requirement in some cases. It's possible for the bot to produce GPG-signed commits.
Associating a GPG public key to a GitHub user account isn't required but it *is* necessary if you want the signed commits to appear as verified in Github.
This can be a compliance requirement in some cases.
You can follow [Github's guide on creating and/or adding a new GPG key to an user account](https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account). Using a specific github user account for the bot can be a good security measure to dissociate this bot's actions and commits from your personal github account. You can follow [GitHub's guide to creating and/or adding a new GPG key to an user account](https://docs.github.com/en/authentication/managing-commit-signature-verification/adding-a-new-gpg-key-to-your-github-account).
Using a specific GitHub user account for the bot can be a good security measure to dissociate this bot's actions and commits from your personal GitHub account.
For the bot to produce signed commits, you will have to provide the GPG private keys to this action's input parameters. You can safely do that with [Github secrets as explained here](https://github.com/crazy-max/ghaction-import-gpg#prerequisites). For the bot to produce signed commits, you need to provide the GPG private keys to this action's input parameters. You can safely do that with [Github secrets as explained here](https://github.com/crazy-max/ghaction-import-gpg#prerequisites).
When using commit signing, the commit author name and email for the commits produced by this bot would correspond to the ones associated to the GPG Public Key. When using commit signing, the commit author name and email for the commits produced by this bot would correspond to the ones associated to the GPG Public Key.
If you want to sign using a subkey, you must specify the subkey fingerprint using the `gpg-fingerprint` input parameter. If you want to sign using a subkey, you must specify the subkey fingerprint using the `gpg-fingerprint` input parameter.
You can find an example of how to using this action with commit signing below: Here's an example of how to using this action with commit signing:
```yaml ```yaml
name: update-flake-lock name: update-flake-lock
on: on:
workflow_dispatch: # allows manual triggering workflow_dispatch: # allows manual triggering
schedule: schedule:
@ -235,10 +239,10 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@v1 uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock - name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@vX uses: DeterminateSystems/update-flake-lock@main
with: with:
sign-commits: true sign-commits: true
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
@ -248,18 +252,19 @@ jobs:
## Custom PR Body ## Custom PR Body
By default the generated PR body is set to be the following template: By default, the generated PR body uses this template:
````handlebars ````handlebars
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action. Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.
``` ````
{{ env.GIT_COMMIT_MESSAGE }} {{ env.GIT_COMMIT_MESSAGE }}
````
``` ```
### Running GitHub Actions on this PR ### Running GitHub Actions on this PR
GitHub Actions will not run workflows on pull requests which are opened by a GitHub Action. GitHub Actions doesn't run workflows on pull requests that are opened by a GitHub Action.
To run GitHub Actions workflows on this PR, run: To run GitHub Actions workflows on this PR, run:
@ -272,12 +277,14 @@ git push origin update_flake_lock_action --force
``` ```
```` ````
However you can customize it, with variable interpolation performed with [Handlebars](https://handlebarsjs.com/). This allows you to customize the template with the following variables: You can customize it, however, using variable interpolation performed with [Handlebars].
- env.GIT_AUTHOR_NAME This enables you to customize the template with these variables:
- env.GIT_AUTHOR_EMAIL
- env.GIT_COMMITTER_NAME - `env.GIT_AUTHOR_NAME`
- env.GIT_COMMITTER_EMAIL - `env.GIT_AUTHOR_EMAIL`
- env.GIT_COMMIT_MESSAGE - `env.GIT_COMMITTER_NAME`
- `env.GIT_COMMITTER_EMAIL`
- `env.GIT_COMMIT_MESSAGE`
## Add assignees or reviewers ## Add assignees or reviewers
@ -297,10 +304,10 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Nix - name: Install Determinate Nix
uses: DeterminateSystems/nix-installer-action@v1 uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock - name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@vX uses: DeterminateSystems/update-flake-lock@main
with: with:
pr-assignees: SomeGitHubUsername pr-assignees: SomeGitHubUsername
pr-reviewers: SomeOtherGitHubUsername,SomeThirdGitHubUsername pr-reviewers: SomeOtherGitHubUsername,SomeThirdGitHubUsername
@ -308,8 +315,16 @@ jobs:
## Contributing ## Contributing
Feel free to send a PR or open an issue if you find something functions unexpectedly! Please make sure to test your changes and update any related documentation before submitting your PR. Feel free to send a PR or open an issue if you find that something functions unexpectedly!
Please make sure to test your changes and update any related documentation before submitting your PR.
### How to test changes ### How to test changes
In order to more easily test your changes to this action, we have created a template repository that should point you in the right direction: https://github.com/DeterminateSystems/update-flake-lock-test-template. Please see the README in that repository for instructions on testing your changes. In order to more easily test your changes to this action, we have created a template repository that should point you in the right direction: https://github.com/DeterminateSystems/update-flake-lock-test-template.
Please see the README in that repository for instructions on testing your changes.
[det-nix]: https://docs.determinate.systems/determinate-nix
[flakes]: https://zero-to-nix.com/concepts/flakes
[handlebars]: https://handlebarsjs.com
[inputs]: https://zero-to-nix.com/concepts/flakes/#inputs
[lockfile]: https://zero-to-nix.com/concepts/flakes/#lockfile

View File

@ -41,15 +41,7 @@ inputs:
GitHub Actions will not run workflows on pull requests which are opened by a GitHub Action. GitHub Actions will not run workflows on pull requests which are opened by a GitHub Action.
To run GitHub Actions workflows on this PR, run: **To run GitHub Actions workflows on this PR, close and re-open this pull request.**
```sh
git branch -D update_flake_lock_action
git fetch origin
git checkout update_flake_lock_action
git commit --amend --no-edit
git push origin update_flake_lock_action --force
```
pr-labels: pr-labels:
description: "A comma or newline separated list of labels to set on the Pull Request to be created" description: "A comma or newline separated list of labels to set on the Pull Request to be created"
@ -106,6 +98,9 @@ outputs:
pull-request-number: pull-request-number:
description: "The number of the opened pull request" description: "The number of the opened pull request"
value: ${{ steps.create-pr.outputs.pull-request-number }} value: ${{ steps.create-pr.outputs.pull-request-number }}
pull-request-url:
description: "The The URL of the opened pull request."
value: ${{ steps.create-pr.outputs.pull-request-url }}
pull-request-operation: pull-request-operation:
description: "The pull request operation performed by the action, `created`, `updated` or `closed`." description: "The pull request operation performed by the action, `created`, `updated` or `closed`."
value: ${{ steps.create-pr.outputs.pull-request-operation }} value: ${{ steps.create-pr.outputs.pull-request-operation }}
@ -115,7 +110,7 @@ runs:
- name: Import bot's GPG key for signing commits - name: Import bot's GPG key for signing commits
if: ${{ inputs.sign-commits == 'true' }} if: ${{ inputs.sign-commits == 'true' }}
id: import-gpg id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6 uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
with: with:
gpg_private_key: ${{ inputs.gpg-private-key }} gpg_private_key: ${{ inputs.gpg-private-key }}
fingerprint: ${{ inputs.gpg-fingerprint }} fingerprint: ${{ inputs.gpg-fingerprint }}
@ -190,7 +185,7 @@ runs:
echo "$DELIMITER" >> $GITHUB_ENV echo "$DELIMITER" >> $GITHUB_ENV
echo "GIT_COMMIT_MESSAGE is: ${COMMIT_MESSAGE}" echo "GIT_COMMIT_MESSAGE is: ${COMMIT_MESSAGE}"
- name: Interpolate PR Body - name: Interpolate PR Body
uses: pedrolamas/handlebars-action@v2.4.0 uses: pedrolamas/handlebars-action@2995d7eadacbc8f2f6ab8431a01d84a5fa3b8bb4 # v2.4.0
with: with:
files: "pr_body.template" files: "pr_body.template"
output-filename: "pr_body.txt" output-filename: "pr_body.txt"
@ -207,7 +202,7 @@ runs:
run: rm -f pr_body.txt pr_body.template run: rm -f pr_body.txt pr_body.template
- name: Create PR - name: Create PR
id: create-pr id: create-pr
uses: peter-evans/create-pull-request@v6 uses: https://nayeonie.com/ahuston-0/create-pull-request@6b3a86bf8bfe10eb458b00968a8fefe2f5f5a6c1 # v6.0.5
with: with:
base: ${{ inputs.base }} base: ${{ inputs.base }}
branch: ${{ inputs.branch }} branch: ${{ inputs.branch }}

74254
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

10
flake.lock generated
View File

@ -2,12 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1713537308, "lastModified": 1749794982,
"narHash": "sha256-XtTSSIB2DA6tOv+l0FhvfDMiyCmhoRbNB+0SeInZkbk=", "narHash": "sha256-Kh9K4taXbVuaLC0IL+9HcfvxsSUx8dPB5s5weJcc9pc=",
"rev": "5c24cf2f0a12ad855f444c30b2421d044120c66f", "rev": "ee930f9755f58096ac6e8ca94a1887e0534e2d81",
"revCount": 614481, "revCount": 814309,
"type": "tarball", "type": "tarball",
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.614481%2Brev-5c24cf2f0a12ad855f444c30b2421d044120c66f/018efa00-a443-7f41-b371-ce568b5c7e9f/source.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.814309%2Brev-ee930f9755f58096ac6e8ca94a1887e0534e2d81/01976d76-ca1f-7eaa-bdc7-ea929d2f1723/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View File

@ -26,22 +26,22 @@
}, },
"homepage": "https://github.com/DeterminateSystems/update-flake-lock#readme", "homepage": "https://github.com/DeterminateSystems/update-flake-lock#readme",
"dependencies": { "dependencies": {
"@actions/core": "^1.10.1", "@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1", "@actions/exec": "^1.1.1",
"detsys-ts": "github:DeterminateSystems/detsys-ts" "detsys-ts": "github:DeterminateSystems/detsys-ts"
}, },
"devDependencies": { "devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^4.3.0", "@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@typescript-eslint/eslint-plugin": "^7.11.0", "@typescript-eslint/eslint-plugin": "^7.18.0",
"@vercel/ncc": "^0.38.1", "@vercel/ncc": "^0.38.3",
"eslint": "^8.57.0", "eslint": "^8.57.1",
"eslint-import-resolver-typescript": "^3.6.1", "eslint-import-resolver-typescript": "^3.10.1",
"eslint-plugin-github": "^4.10.2", "eslint-plugin-github": "^4.10.2",
"eslint-plugin-import": "^2.29.1", "eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.1.3", "eslint-plugin-prettier": "^5.4.1",
"prettier": "^3.2.5", "prettier": "^3.5.3",
"tsup": "^8.0.2", "tsup": "^8.5.0",
"typescript": "^5.4.5", "typescript": "^5.8.3",
"vitest": "^1.6.0" "vitest": "^3.2.0"
} }
} }

6975
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -54,6 +54,7 @@ class UpdateFlakeLockAction extends DetSysAction {
const execOptions: actionsExec.ExecOptions = { const execOptions: actionsExec.ExecOptions = {
cwd: this.pathToFlakeDir !== null ? this.pathToFlakeDir : undefined, cwd: this.pathToFlakeDir !== null ? this.pathToFlakeDir : undefined,
ignoreReturnCode: true,
}; };
const exitCode = await actionsExec.exec("nix", nixCommandArgs, execOptions); const exitCode = await actionsExec.exec("nix", nixCommandArgs, execOptions);

View File

@ -24,7 +24,8 @@ test("Nix command arguments", () => {
"flake", "flake",
"update", "update",
"--commit-lock-file", "--commit-lock-file",
"--commit-lockfile-summary", "--option",
"commit-lockfile-summary",
"just testing", "just testing",
], ],
}, },
@ -42,7 +43,8 @@ test("Nix command arguments", () => {
"--update-input", "--update-input",
"rust-overlay", "rust-overlay",
"--commit-lock-file", "--commit-lock-file",
"--commit-lockfile-summary", "--option",
"commit-lockfile-summary",
"just testing", "just testing",
], ],
}, },
@ -57,7 +59,8 @@ test("Nix command arguments", () => {
"flake", "flake",
"update", "update",
"--commit-lock-file", "--commit-lock-file",
"--commit-lockfile-summary", "--option",
"commit-lockfile-summary",
"just testing", "just testing",
], ],
}, },

View File

@ -9,10 +9,23 @@ export function makeNixCommandArgs(
input, input,
]); ]);
// NOTE(cole-h): In Nix versions 2.23.0 and later, `commit-lockfile-summary` became an alias to
// the setting `commit-lock-file-summary` (https://github.com/NixOS/nix/pull/10691), and Nix does
// not treat aliases the same as their "real" setting by requiring setting aliases to be
// configured via `--option <alias name> <option value>`
// (https://github.com/NixOS/nix/issues/10989).
// So, we go the long way so that we can support versions both before and after Nix 2.23.0.
const lockfileSummaryFlags = [
"--option",
"commit-lockfile-summary",
commitMessage,
];
const updateLockMechanism = flakeInputFlags.length === 0 ? "update" : "lock"; const updateLockMechanism = flakeInputFlags.length === 0 ? "update" : "lock";
return nixOptions return nixOptions
.concat(["flake", updateLockMechanism]) .concat(["flake", updateLockMechanism])
.concat(flakeInputFlags) .concat(flakeInputFlags)
.concat(["--commit-lock-file", "--commit-lockfile-summary", commitMessage]); .concat(["--commit-lock-file"])
.concat(lockfileSummaryFlags);
} }