r/devops • • Jul 28 '26

Tools github actions central repo

Hi I am in a new role where they use Github for all their repos. I have been using Gitlab exlusively the past 5 years.

For CI/CD in my previous role we had a central 'pipelines' repo that was reference in the gitlab-ci file of each project to save teams/projects from repeating work.

I want to know if it's possible to do something similar in Github? I'm still learning how it maps to my existing Gitlab knowledge.

28 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/zuilli Jul 28 '26 edited Jul 28 '26

No, github environment secrets. Sure you can workaround by putting them as repo or org secrets but if you have a few secrets per environment and 3 or more environments your secrets list starts getting mighty polluted with the same secrets names but with dev/hml/prd pre/suffixes and you have to pay closer attention to not change/delete the wrong one since they're all in the same place.

It would be so much cleaner if we could pass the environment to reusable workflows, especially because stuff like this: https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/create-custom-protection-rules depend on using environments.