Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
user-x

GitHub Action

Check User Permission

v1.2.2

Check User Permission

user-x

Check User Permission

A GitHub Action to check user permission of the current repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Check User Permission

uses: actions-cool/[email protected]

Learn more about this action in actions-cool/check-user-permission

Choose a version

👮 Check User Permission

🚀 How to use?

name: Check User Permission

on:
  issues:
    types: [opened, edited]
  release:
    types: [published]


jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions-cool/check-user-permission@v1

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 the user whether a bot boolean
  • User permission: admin > write > read

Output

  • result: When use require
  • user-permission

How to use?

⚡ 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