| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository is an issue ops automation that allows the support team of an organization to use Issue Ops to request temporarily admin access to the organization to perform tasks that require such permission. All the operations done during the process are reported as part of the audit log of the user. Closing the issue removes the permission.
To request the permission:
Organization: my-org
Description: A user requires to be added to a team and nobody else can give him access
Ticket: 123456
Duration: 2⚠️ All the actions performed as an admin will be audited and added to the repository, so be cautious of the changes done in the organization
The duration requested will be approximate and has a ~1h error. We recommend to close the issue when the task is completed.
| Organization name |
|---|
| Add your supported organizations here |
To setup this repository in your organization follow this steps:
| Param name | Description |
|---|---|
| org | The name of the organization where this automation is located |
| repository | The name of the repository where this automation is located |
| supportedOrgs | The name of the organizations where the PAT provided can be used. As a minimum it should have the current org |
| reportPath | The name of the path where the automation will store and commit the reports. If you change this value should change it also in the workflow mkdir command |
As this automation provides admin access to organizations, you may only want certain teams to be able to fill issues in. To do so:
Since testing this integration locally with actions is a bit difficult, we can run the actions as a CLI for testing purposes. See the instructions of the CLI below:
$ npm start -- --help Options: -v, --version Output the current version -t, --admin-token <string> the token to access the API (mandatory) -a, --action <string> the action to be executed action: parse_issue Parse the body of an issue -i, --issue-number <number> the issue number where we are executing the operation action: promote_demote Promote user to admin or demote to member -u, --username <string> the username to promote/demote -r, --role <string> the role to apply on the username [admin | member] action: demotion_report Parse the body of an issue -u, --username <string> the username that was promoted/demoted -d, --description <string> activity description -i, --issue-number <number> the issue number where we are executing the operation -s, --ticket <number> the ticket number in your support system -dd, --demotion-date <date> demotion date example: 2021-03-12T10:36:36+00:00 -pd, --promotion-date <date> promotion date example: 2021-03-12T09:36:36+00:00 -to, --target-org <date> the target organization where the user was promoted -h, --help display help for command
This integration requires a Personal Access Token with permissions in the orgs listed above. To use it, add the token as an Actions Secret with the name PAT.
The integration is built on the following actions:
The actions in the workflows are executed using a CLI. This CLI has different actions based on the names. The actions supported are:
To develop new actions:
| Back | FazBrowse Home | New Git URL |