Re:Any program can be a GitHub Actions shell
by prmoustache on Tuesday April 08, 2025 @06:49AM
(#43620218)
Pipelines are usually just a list of sequential steps. I have been working with a lot of different CI/CD tools and they are among the easiest thing to move from one to another.
[ Parent
| on HN ]
Re:Any program can be a GitHub Actions shell
by Hackbraten on Tuesday April 08, 2025 @08:26AM
(#43620908)
One example: for my personal Python projects, I use two GitHub actions named `pypa/gh-action-pypi-publish` [0] and `sigstore/gh-action-sigstore-python` [1] to sign my wheels, publish my wheels to PyPI, and have PyPI attest (and publicly display via check mark [2]) that the uploaded package is tied to my GitHub identity.
How would I even begin migrating this to another forge? And that’s just a small part of the pipeline.
[0]: https://github.com/marketplace/actions/pypi-publish
[1]: https://github.com/marketplace/actions/gh-action-sigstore-py...
Re:Any program can be a GitHub Actions shell
by prmoustache on Tuesday April 08, 2025 @11:03AM
(#43622613)
sigstore is not a github action specific tool, you can use the python client with any CI/CD tool runner. You can attest with py_pi attestations and publish with twine.
When migrating the steps don't have to use the same syntax and tools, but for each step you can identify the desired outcome and create it without actions from the gh marketplace on a different CI/CD.
More importantly, you consciously decided to make your pipeline not portable by using gh actions from the marketplace. This is not a requirement nor inevitable.
Re:Any program can be a GitHub Actions shell
by woodruffw on Tuesday April 08, 2025 @09:11AM
(#43621411)
This is only a small part, but FWIW: you don’t need gh-action-sigstore-python to do the signing; gh-action-pypi-publish will do it automatically for you now.
(Source: I maintain the former and contributed the attestations change to the latter.)