Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service-manangement-wg: Add temporary group for area bot with admin permissions #726

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

pivotal-marcela-campo
Copy link
Member

This bot bumps dependencies regularly and requires admin credentials. We are putting this group in place until we are able to implement another strategy (e.g. PR workflow).

@pivotal-marcela-campo pivotal-marcela-campo changed the title Add temporary group for area bot with admin permissions service-manangement-wg: Add temporary group for area bot with admin permissions Dec 6, 2023
@beyhan beyhan requested review from a team, rkoster, beyhan, stephanme, ameowlia and ChrisMcGowan and removed request for a team December 11, 2023 09:26
Copy link
Contributor

@stephanme stephanme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need admin rights for dependency bumps?
According to the WG charter yaml, the servicesenablement user is configured as a WG area bot and has already write access for these repos.

If admin rights are really needed, then it looks ok and I will approve.

@pivotal-marcela-campo
Copy link
Member Author

Do you really need admin rights for dependency bumps? According to the WG charter yaml, the servicesenablement user is configured as a WG area bot and has already write access for these repos.

If admin rights are really needed, then it looks ok and I will approve.

Hi Stephan, we do for now. This bumps our done from a CI job that just pushes from main and we need the EasyCLA check passing to push, so we probably need to do a PR. We just need admin rights until we have capacity to change the way we do this bumps.

@ameowlia
Copy link
Member

Update from TOC meeting Dec 19, 2023: we aren't going to merge yet, in hopes that the team will find a different work around. If there is not workaround before we enact the restrictions in Jan we will merge this PR.

@stephanme
Copy link
Contributor

For cf-deployment, a regular bot user makes version bumps: https://github.com/cloudfoundry/cf-deployment/commits/main/

This works without admin rights: ard-wg-gitbot is part of https://github.com/orgs/cloudfoundry/teams/wg-app-runtime-deployments-bots and this team has only write access for cf-deployment.
Maybe it was necessary to merge one PR as ard-wg-gitbot manually to agree to the CLA but nobody remembers.

@beyhan
Copy link
Member

beyhan commented Jan 15, 2024

@pivotal-marcela-campo do you have more details on this?

This bot bumps dependencies regularly and requires admin credentials.
We are putting this group in place until we are able to implement
another strategy (e.g. PR workflow).

[#184640225](https://www.pivotaltracker.com/story/show/184640225)
@pivotal-marcela-campo
Copy link
Member Author

Hi @beyhan, we couldn't get around to test our pipelines without admin permissions for the bot. I tried today but had to dependency bumps pending. I tried making a PR with the bot account and succeeded. When we tried at the point this permission removal started being worked on, we were getting errors merging due to EasyCLA pending. The bot seems to have signed that already, I had worked with Chris Clark on that way back and seems to be fine. We would need a bit more time to figure out what the issue is. Our branch protection rules basically require all status checks to succeed, which means tests and EasyCLA.
Is there a possibility to merge this PR and maybe then try removing permission from one repository at the time?

@ameowlia
Copy link
Member

We've gotten 3 approvals, so I am going to merge.

@ameowlia ameowlia merged commit be6a8a7 into main Jan 29, 2024
2 checks passed
@ameowlia ameowlia deleted the sm-temp-bots-admin-group branch January 29, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants