Live data from Hacker News

Use GitHub actions at your own risk

julienrenaux.fr

61–65 of 65 posts

Re: Use GitHub actions at your own risk

#61

Earlier quoted context omitted.

Right, such as travis, circleci, gitlab, etc. All of which are pretty popular, so clearly there is interest in SaaS CI/CD.

Yes, they are popular. But on-premises ones also exist, are popular too, and mostly do not have this one problem. It's a relevant distinction on this context.

[deleted]

Re: Use GitHub actions at your own risk

#62
post #17

Earlier quoted context omitted.

This isn't much different than other CI/CD pipelines. Docker images come to mind.

This isn't much different than other SaaS CI/CD pipelines.

On-premise CI/CD may still (and often does) use someone else's code, which can expose data and secrets in the same way as outlined. The only difference is that it's on your own infrastructure.

There's something to be said for on-premise solutions, but they won't save you from a malicious maintainer.

Re: Use GitHub actions at your own risk

#63

The same could be said for any use of docker images. Seems a little unfair to single out Github.

It should be possible to import specific docker imager versions into a private repository and use them for production.

With Gitlab.com:

https://docs.gitlab.com/ee/user/packages/container_registry/

https://docs.gitlab.com/ee/ci/docker/README.html

Re: Use GitHub actions at your own risk

#64
One thing I'm missing from Actions is a way to manually trigger an action from the UI.

Currently the closest equivalents are making a request via the API (but then you need a token with it, and all the security concerns it opens) or sending a special message using an empty commit (but I haven't found a simple way to do that from inside VSCode, unless I missed it somewhere).

Re: Use GitHub actions at your own risk

#65
post #51

This also applies to most library, docker (as mentioned) and basically anything you use that's 3rd party. I suppose it varies on your level of paranoia, though honestly if you rely on a github action in your production flow you should fork the project. Never mind doing something malicious, they could just as easily delete the entire repo and now your critical feature you needed to deliver are blocked because the libr…

Unlike git commit hashes, docker image tags can be overwritten by the maintainer at any time, even if they map to a hit commit hash.

You can address image layers by sha256 hash. Do a docker pull of the image and the log will tell you the hash. Then you can do docker pull myimage@sha256:abc123def456...... I usually use these in my deployments since they can't be modified, it will require a new deploy.
Post reply on HN