-
-
Notifications
You must be signed in to change notification settings - Fork 583
chore(deps): update various #2860
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
base: main
Are you sure you want to change the base?
Conversation
.github/workflows/ci.yml
Outdated
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 |
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.
I don't like this GHA commit pinning, makes it a pain to update them
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.
It shouldn't be a pain to update.
https://github.com/NixOS/nixpkgs/pull/458072/files
An automatic way to update them should be set, just like in nixpkgs, don't you think?
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.
This repo is cursed and dependabot doesn't work on github actions, so we're stuck with updating by hand
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.
dependabot doesn't work on github actions
There is a bot called Renovate, which have been working just fine for me without any issues.
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.
I don't want to set up another bot
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.
I don't like this GHA commit pinning, makes it a pain to update them
Definitely should though. While github is probably not going to be compromised, this shit is insanely important to avoid some supply chain attacks, and so a good idea for best practices
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.
Instead of saying cursed, it would be better to say misconfigured.
If it works for a much bigger repo such as nixpkgs, it should definitely work for this repo as well.
If reaching out to github support is needed as a last resort, then that is the plan.
But at the same time...
I don't like this GHA commit pinning, makes it a pain to update them
Line 303 in 012700d
| uses: DeterminateSystems/nix-installer-action@v3 |
Like come on... this was released in 2023.
With this kind of updates, there should be no difference and no pain in updating because they weren't done before either.
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.
Instead of saying cursed, it would be better to say misconfigured.
If it works for a much bigger repo such as nixpkgs, it should definitely work for this repo as well.
If reaching out to github support is needed as a last resort, then that is the plan.
I am saying cursed because that's what it is. dependabot/dependabot-core#11201
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.
With this kind of updates, there should be no difference and no pain in updating because they weren't done before either.
Increasing 1 digit is way simpler than going to look up the commit hash, should I really explain this?
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.
Increasing 1 digit is way simpler than going to look up the commit hash, should I really explain this?
But 1 digit also does nothing against supply chain attacks. Tags are mutable. Commit SHAs are not. Malicious actions could be used to inject significant vulnerabilities or even backdoors into niri releases, which would not be visible in the code. That's a significant attack vector, which nobody would notice until the harm has been done and a bunch of people's systems have been compromised. Unlikely with github's actions, but not too crazy with the third party actions being used in various steps. Especially if niri grows and becomes a more attractive target.
Updating is a lil more annoying, but one could grab release SHAs within like 30s and find+replace them in another 30s across the whole workflow folder, which keeps updates quite manageable.
This PR doesn't fully address this issue though, but this is a good change from a security standpoint.
TL;DR: Find+Replace or sed take care of the issue with updating them, and it's a pretty good change from a security standpoint and should be done in principle and dogmatically.
| name: alpine musl | ||
| runs-on: ubuntu-24.04 | ||
| container: alpine:3 | ||
| container: alpine:3.22.2@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412 # https://hub.docker.com/layers/library/alpine/3.22.2/images/sha256-9eec16c5eada75150a82666ba0ad6df76b164a6f8582ba5cb964c0813fa56625 |
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.
Same here about pinning
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.
Without pinning, tags can change, especially until dockerhub adds a way to make tags/releases immutable like github has and you won't have a way to know that the packages used haven't changed since the last CI run.
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.
I understand but it's not a problem
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.
This commit is not necessary I think
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.
You are right, it is not necessary, but it's a good addition.
Even today you can use yum install ..., but at the same time it's a symlink to the new dnf.
Same with apt. So why not use the today's way instead of using symlinks for backwards compatibility?
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.
dnfis the standard command everyone runs on Fedora. Nobody runs dnf5 by hand- last time I checked
apt installstill had a scary warning that its CLI is not stable, and similarly everyone usesapt-getin CI. I think it's just safer to do the boring ones
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.
I know people that still use yum just because that's what get got used to.
Those that got used to use dnf, will continue to do so even if it's not there anymore.
That doesn't mean we shouldn't keep up with what has changed.

As for apt, there is a good comparison made by Amazon.
https://aws.amazon.com/compare/the-difference-between-apt-and-apt-get
With ubuntu 26.04, using apt instead of apt-get will be even more of an improvement because of the apt 3.0 release which is the default in debian 13.
| run: | | ||
| sudo dnf5 update -y | ||
| sudo dnf5 install -y ${{ env.DEPS_DNF }} libadwaita-devel | ||
| run: sudo dnf5 install -y ${{ env.DEPS_DNF }} libadwaita-devel |
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.
Can't this cause newer libadwaita-devel with stale other deps?
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.

Why wasn't this used instead? @Ind-E #2821
https://wimpysworld.com/posts/nothing-but-nix-github-actions
the space reclaimer which is used in nixpkgs through nixpkgs-review-gha