kubevirt / project-infra

Project infrastructure administrative tools
Apache License 2.0
25 stars 130 forks source link

community, org: generate yaml with list of users access levels #3500

Open dhiller opened 1 month ago

dhiller commented 1 month ago

What this PR does / why we need it:

Adds a tool robots/cmd/org-access-check that generates three yaml documents with the access levels all the users have per a repository.

Each of the yaml files will enable looking from a different angle:

  1. accessPermissions To Repositories To Collaborators
  2. repositories To AccessPermissions To Collaborators
  3. collaborators To AccessPermissions To Repositories

The first yaml is basically structured like this:

{access-level}:
    {repository}:
        - {user1}
        - ...

where access level is (admin|write|maintain)

Others are structured likewise.

See explanations on repository roles here 1

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #

Special notes for your reviewer:

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR. Approvers are expected to review this list.

Release note:

kubevirt-bot commented 1 month ago

Skipping CI for Draft Pull Request. If you want CI signal for your change, please convert it to an actual PR. You can still manually trigger a test run with /test all

kubevirt-bot commented 1 month ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from dhiller. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/kubevirt/project-infra/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
dhiller commented 1 month ago

See also kubevirt/community#239