I would like to only run builds for users I allow, all other builds must be ignored.
The CircleCI security model does not supply any access control layer to restrict what is already in place from the repo service you are using so if people are working directly on the repo they can cause builds to start.
You can insert some basic scripting into the config.yml that checks the user name of the person who has caused the build as an environment variable CIRCLE_USERNAME is defined. This would allow you to cut the build short but does not stop the build from spinning up.
There are some ways for multiusers can use account. To limit your organization’s account to only allow builds for 5 specific users, you can follow this steps:
-
Pick the 5 users who can run builds.
-
Change the settings to give only these 5 users the permission to start builds.
-
make sure all other users don’t have the build permission.
This way, only your chosen 5 users can run builds, and no one else.
There are some ways for multiusers can use account. To limit your organization’s account to only allow builds for 5 specific users, you can follow this steps:
- Pick the 5 users who can run builds.
- Change the settings to give only these 5 users the permission to start builds.
- make sure all other users don’t have the build permission.
This way, only your chosen 5 users can run builds, and no one else.
Have you tried this or not? If it does not work then inform me.
I hope my suggestion is helpful for every one. PublixPassport