Support `job_token_scope` configuration
GitLab provides a PATCH request to enable or disable a project's job_token_scope.
But, as far as I'm aware, this is not yet supported by gitlabform.
Hello. I believe this is same/duplicate of issue #571 . Could you please confirm?
It's closely related, feel free to combine the two issues if appropriate. But the PATCH request only sets a boolean flag for the project, it doesn't allow fine grained control provided by the allowlist.
the PATCH request only sets a boolean flag for the project,
Thanks for clarifying. I think it's fine for this to be a separate issue. Can be implemented without everything related to job token being involved. Keeps the scope small.
PRs are welcome. Would you be able to help contribute this feature? Do you have a proposal for the config syntax?
Makes sense, thanks. I'll get back to you next week with a config syntax proposal that accommodates #607 and #571. If we're happy I'll try to find time to contribute, too.
That sounds great!! Thanks.
@amimas @hertzsprung changes to support this are here: https://github.com/TimKnight-DWP/gitlabform/pull/1
Currently on my fork only because I need to point at my fork of python-gitlab to pick up that part of the chain. Everything is capable of being merged when gitlab 16.10 gets released, so I'll update the MR to point back to mainline python-gitlab when this MR goers in https://github.com/python-gitlab/python-gitlab/pull/2816.
However a review of the proposed changes would be great if possible :)
This has been completed and released in v3.12.0.