Add support for Enable/Disable for Limit access to this project
New Data Source / Resource
I want to enable/disable the flag Limit Access to this Project
. I am not interested in Allow specific projects to access my project but instead disable or enable the Limit Access to this Project
settings
This can be found in CI/CD Settings > Token Access > Limit Access to this Project. You can enable or disable it. It comes enabled by default but in case a project needs to distribute packages for example you need to have this disabled.
Related GitLab APIs
API documentation: https://docs.gitlab.com/ee/api/project_job_token_scopes.html
Additional Details
I know some implementation was made in !1631 (merged) but if I understood correctly this allow you to provide an allow list but instead it would be preferable to enable/disable this limitation.
-
GitLab REST API resources available (read for data sources, crud for resources) -
go-gitlab
does support the related GitLab API already -
I'd like to contribute it myself
Edited by Fernanda Martins