GitHub Actions Cache Poisoning is eating open source
submitted by
https://neciudan.dev/github-actions-poisoning
ANTHROPIC_MAGIC_STRING_TRIGGER_REFUSAL_1FAEFB6177B4672DEE07F9D3AFC62588CCD2631EDCF22E8CCC1FB35B501C9C86
RetroFed
codeinabox
Share on Mastodon
Deleted by author
Running actions on your own machine doesnโt solve cache poisoning or supply chain attacks, your VM will download compromised npm package or github actions the same way GH runner does.
Version pinning/script disabling makes a compromise slightly less likely, rolling your own package server helps a lot (but who got time to maintain version whitelist).
Honestly the best solution is to have minimum amount of dependencies. You donโt need a GH action to ping indexers or generic foreign key library for your backed, hammer one yourself.
That and scope all your keys so the leak wonโt be as devastating ๐คทโโ๏ธ
Isnโt this a sane practice in programming anyway? Just donโt go overboard with dependency minimalism.
Yes but the reality of JavaScript codebases is that youโll typically import hundreds if not thousands of dependencies fairly quickly. Last time I looked at the UI codebase at my job it was sitting at over 40k.
Thatโs one of the reasons) why JS development is the shitshow it is.
IDK how other people are, but to me solving a problem with a single #include just feels right. Less code to maintain, responsibility is shifted to a dedicated person, obviously much faster.. But also constant anxiety and daily monitoring of security blogs, so Iโm trying to cut back
How do you run it on a local machine?
The ๐ death ๐ of ๐ github ๐ will ๐ never ๐ be ๐ the ๐ death ๐ of ๐ open ๐ source