Skip to content

Commit b7c7099

Browse files
committed
Ensure dependabot doesn't break over time
The automated GitHub workflow updates were broken for some time due to dependabot's images fetched at runtime went out of sync with the binary. While updating dependabot fixed it for now, a more permanent fix is to use the version of dependabot that pins the images at build time, introduced in NixOS/nixpkgs#352866 and NixOS/nixpkgs#354085
1 parent 54a1aec commit b7c7099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

default.nix

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ let
132132
githubActions = pkgs.writeShellApplication {
133133
name = "update-github-actions";
134134
runtimeInputs = with pkgs; [
135-
dependabot-cli
135+
dependabot-cli.withDockerImages
136136
jq
137137
github-cli
138138
coreutils
@@ -144,8 +144,8 @@ let
144144
pkgs.writeShellApplication {
145145
name = "auto-pr-update";
146146
text = ''
147-
# Prevent impurities
148-
unset PATH
147+
# Prevent impurities, but we need docker
148+
PATH=$(dirname "$(which docker)")
149149
${lib.concatMapStringsSep "\n" (script: ''
150150
echo >&2 "Running ${script}"
151151
${lib.getExe script} "$1"

0 commit comments

Comments
 (0)