Skip to content

Commit

Permalink
Ensure dependabot doesn't break over time
Browse files Browse the repository at this point in the history
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
  • Loading branch information
infinisil committed Nov 25, 2024
1 parent 54a1aec commit b7c7099
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ let
githubActions = pkgs.writeShellApplication {
name = "update-github-actions";
runtimeInputs = with pkgs; [
dependabot-cli
dependabot-cli.withDockerImages
jq
github-cli
coreutils
Expand All @@ -144,8 +144,8 @@ let
pkgs.writeShellApplication {
name = "auto-pr-update";
text = ''
# Prevent impurities
unset PATH
# Prevent impurities, but we need docker
PATH=$(dirname "$(which docker)")
${lib.concatMapStringsSep "\n" (script: ''
echo >&2 "Running ${script}"
${lib.getExe script} "$1"
Expand Down

0 comments on commit b7c7099

Please sign in to comment.