Protect against malicious usage of GitHub Actions #223
Unanswered
Vadorequest
asked this question in
General
Replies: 2 comments 1 reply
-
I've also never considered this and I totally agree, we need a better strategy. I'm also going to take the same approach for my other projects. This is a huge thing, thanks for bringing that up. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you for this excellent post, @Vadorequest. Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been deceived by the GitHub Actions Marketplace today.
My understanding of what it actually does was wrong, I have been completely mistaken.
I thought the purpose of the Marketplace was to host our Actions, and act as a way of version-control, similar to what NPM does.
The actual purpose of the Marketplace is
Find tools to improve your workflow
.That might seem obvious to people, but I was under the impression GitHub Actions Marketplace would somehow protect us against evil-intended action. The short answer is that it's not.
I ended up there by trying to understand how an Action could be unpublished.
Eventually, I figured a few things, thanks to:
What's critical for devs to understand:
peter-evans/create-or-update-comment@v1
, which can target either atag
or abranch
.--force
and rewriting the history.What's recommended for a max of security/reliability
@v1
for production-grade tools@latest
- This is great for dev, not for production usagepeter-evans/create-or-update-comment@42d0000ec46183c565239510fdf1db5aca86fc8b
instead ofpeter-evans/create-or-update-comment@v1
Follow-up action plan:
Based on those findings, here's what I intend to do:
#224
Were you aware of that?
How come so few people care about it, considering how bad it went with NPM a few years ago with similar stories about published packages?
Feel free to share your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions