Skip to content

Commit 8220473

Browse files
committed
ci: revert actions/checkout to v5 due to update-flake-lock incompatibility
Root cause: DeterminateSystems/update-flake-lock@v27 uses peter-evans/[email protected] internally, which is incompatible with actions/checkout@v6's new credential storage mechanism. The Problem Chain: - actions/checkout@v6 moved credentials from .git/config to $RUNNER_TEMP (security improvement) - peter-evans/[email protected] cannot access credentials from the new $RUNNER_TEMP location - This causes exit code 128 when update-flake-lock tries to create PRs The Fix: - [email protected] fixed v6 compatibility - However, update-flake-lock@v27 (released July 2025) hasn't upgraded yet - Reverting to v5 restores working credential access Next Steps: - Can upgrade to v6 once update-flake-lock uses [email protected]+ - DeterminateSystems/update-flake-lock#224 - Dependabot configured to ignore v6 upgrades until compatibility is fixed Fixes: https://github.com/nix-community/home-manager/actions/runs/19712979574 See: peter-evans/create-pull-request#690 Signed-off-by: Austin Horstman <[email protected]>
1 parent 946907f commit 8220473

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ updates:
77
interval: "weekly"
88
commit-message:
99
prefix: "ci:"
10+
ignore:
11+
# Ignore v6 until update-flake-lock upgrades to [email protected]+
12+
- dependency-name: "actions/checkout"
13+
update-types: ["version-update:semver-major"]
1014

1115
- package-ecosystem: "github-actions"
1216
directory: "/"
@@ -15,3 +19,7 @@ updates:
1519
interval: "weekly"
1620
commit-message:
1721
prefix: "ci:"
22+
ignore:
23+
# Ignore v6 until update-flake-lock upgrades to [email protected]+
24+
- dependency-name: "actions/checkout"
25+
update-types: ["version-update:semver-major"]

.github/workflows/update-flake.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ jobs:
3535
3636
} >> "$GITHUB_OUTPUT"
3737
- name: Checkout repository
38-
uses: actions/checkout@v6
38+
# NOTE: v6 is incompatible with update-flake-lock@v27 due to credential
39+
# storage changes. update-flake-lock uses peter-evans/[email protected]
40+
# which doesn't work with v6's $RUNNER_TEMP credential storage.
41+
# Can upgrade to v6 once update-flake-lock uses [email protected]+
42+
# See: https://github.com/peter-evans/create-pull-request/issues/690
43+
uses: actions/checkout@v5
3944
with:
4045
ref: ${{ matrix.branch }}
4146
token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)