{"repo":"actions-cool/check-user-permission","free":true,"listed":false,"github":"https://github.com/actions-cool/check-user-permission","clone":"git clone https://github.com/actions-cool/check-user-permission.git","description":"👮 A GitHub Action to check user permission of the current repository.","language":"JavaScript","stars":24,"topics":["github-actions","user","check","permission"],"license":"MIT","category":"workflow-automation","readme_excerpt":"👮 Check User Permission 🚀 How to use? Input Name Desc Type Required -- -- -- -- token GitHub token string ✖ require Test whether the user meets the required permission string ✖ username Obtained from the context by default, can also be customized to pass in string ✖ check-bot Check whether the user is a bot boolean ✖ check-contributor Check whether the user is contributor boolean ✖ error-if-missing Error if require or check if false boolean ✖ - User permission: admin write read - username support github context - actor : The Default - triggering actor : The username of the user that initiated the workflow run even re-run - Example: username: github.triggering actor Output - user-permission : read write admin - require-result : The result of require true false - check-result : The result of check true false How to use? - https://github.com/actions-cool/issues-helper#outputs-%E4%BD%BF%E7%94%A8 - https://github.com/actions-cool/check-user-permission/blob/main/.github/workflows/check-permission.yml - https://github.com/actions-cool/test-ci/blob/main/.github/workflows/test-check-user.yml ⚡ Feedback You are very welcome to try it out and put forward your comments. You can use the following methods: - Report bugs or consult with Issue - Submit Pull Request to improve the code of check-user-permission 欢迎加入 钉钉交流群 Changelog CHANGELOG LICENSE MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/actions-cool","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/actions-cool/check-user-permission/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}