RetroFed Forum
Your home away from modern life.
GitHub Actions Cache Poisoning is eating open source
Post Reply
AuthorMessage
codeinabox programming.dev codeinabox@programming.dev
Joined: 2025-09-29
Quote

30   Original
ultimate_worrier lemmy.dbzer0.com ultimate_worrier@lemmy.dbzer0.com
Joined: 2025-05-06
#2 · (edited) Quote Reply

[deleted]
10
onlinepersona programming.dev onlinepersona@programming.dev
Joined: 2023-09-01
#3 · Quote Reply

[deleted]

How do you run it on a local machine?

1
Maxxie piefed.blahaj.zone Maxxie@piefed.blahaj.zone
Joined: 2025-06-08
#4 · Quote Reply

[deleted]

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 🤷‍♀️

6
lauha lemmy.world lauha@lemmy.world
Joined: 2025-06-29
#5 · Quote Reply

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...

Honestly the best solution is to have minimum amount of dependencies.

Isn't this a sane practice in programming anyway? Just don't go overboard with dependency minimalism.

3
Maxxie piefed.blahaj.zone Maxxie@piefed.blahaj.zone
Joined: 2025-06-08
#6 · Quote Reply

Honestly the best solution is to have minimum amount of dependencies. Isn't this a sane practice in programming anyway? Just don't go overboard with dependency minimalism.

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

1
cockmushroom reddthat.com cockmushroom@reddthat.com
Joined: 2025-08-31
#7 · Quote Reply

The 👏 death 👏 of 👏 github 👏 will 👏 never 👏 be 👏 the 👏 death 👏 of 👏 open 👏 source

5
Piatro programming.dev Piatro@programming.dev
Joined: 2023-06-09
#8 · Quote Reply

Honestly the best solution is to have minimum amount of dependencies. 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.

2
lauha lemmy.world lauha@lemmy.world
Joined: 2025-06-29
#9 · Quote Reply

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.

2
Post Reply
Back to top