jorisroovers / gitlint

Linting for your git commit messages
http://jorisroovers.github.io/gitlint
MIT License
791 stars 99 forks source link

Refactor GHA pipelines for improved security #467

Open jorisroovers opened 1 year ago

jorisroovers commented 1 year ago

To consider as part of this:

Suggested by @webknjaz here: https://github.com/jorisroovers/gitlint/pull/418/files#r1131056985

webknjaz commented 1 year ago
* [ ]  Consider adding branch protection rules

I was referring to the environment protections, not branch protection.

* [ ]  Reconsider how dev builds are triggered from CI, splitting the it out in a separate pipeline instead of calling the workflow directly from `ci.yml`

I don't see a problem with this for as long as the job has a separate environment set.

webknjaz commented 1 year ago

[ ] Ensure publishing secrets aren't available to CI jobs

Hey @jorisroovers, I'd like to invite you to join the private beta of secretless publishing from GHA to PyPI. Please, fill out this form https://forms.gle/XUsRT8KTKy66TuUp7 to get in.

jorisroovers commented 1 year ago

Note-to-self: This section in the OIDC docs has good suggestions on github action hardening: https://github.com/pypi/warehouse/blob/ab05dd4c137eb57ff55794a659062f02b4c326bc/docs/user/trusted-publishers/security-model.md#considerations

jorisroovers commented 1 year ago

Just configured a few things:

Notes

Next up are job permissions.