-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic GitHub action updates #40
Conversation
Now using `nix-build -A <tab>` is much smaller
03c24b2
to
08e9629
Compare
I renamed the |
Pretty cool! I'm learning a lot by review this code. I've never used |
Awesome! Not sure if this needs to be documented anywhere since nobody will actually need to run this locally, but to make it work locally you need a Docker daemon running, which on NixOS means something like this: {
virtualisation.docker.enable = true;
# The default firewall settings block inter-container networking,
# which is needed by dependabot, so don't run the firewall on docker connections
networking.firewall.trustedInterfaces = [ "docker0" ];
# So that your user can access docker without being `root`
users.users.me.extraGroups = [ "docker" ];
} |
We're you using https://github.com/nektos/act ? (it depends on docker) |
Nah I'm running it locally by doing what the action does: https://github.com/NixOS/nixpkgs-check-by-name/blob/44d5e2e905037c4614095228d2b9b91eaa119cf2/.github/workflows/update.yml#L19-L20 Or within the current directory:
E.g. try downgrading a GitHub Actions dependency and then running that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dang Silvan, I'm learning too much. This is definitely effortful in a way that's quite impressive.
Makes the diff smaller for a future non-trivial update script
Using the dependabot CLI
08e9629
to
815a4ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦺 👍🏻 👀
Looks good.
Lazy derivation didn't work as expected? |
Ohh it did work as expected, this is actually great because it shows that we relied on |
Just opened dependabot/cli#301 to hopefully have a better solution eventually :) |
Nice: #42 |
This is an alternative to #39. It runs the dependabot CLI locally in the existing weekly update CI action (along with some jq magic).
Yet untested in CI, butIt also works locally, which is really nice!Best reviewed commit-by-commit, there's some Nix changes in the first 2 commits.
This work is sponsored by Antithesis ✨