sushichop/Repository Permission
GitHub Action that checks repository permission for a user flexibly
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Repository token. GitHub Action token is used by default(recommended). But you can also use the other token(e.g. personal access token). | no | ${{ github.token }} |
| required-permission | Required permission level to the repository. | yes | admin |
| comment-permitted | Issue comment added when a user is permitted. | no | — |
| comment-not-permitted | Issue comment added when a user is not permitted. | no | — |
| reaction-permitted | Reaction to the issue comment(if it exists) when a user is permitted. | no | — |
| reaction-not-permitted | Reaction to the issue comment(if it exists) when a user is not permitted. | no | — |
| relax | Does NOT check repository permission strictly. If this is set to true, the action sets exit code to 0 regardless of whether a user is permitted. | no | false |
Outputs
| name | description |
|---|---|
| actual-permission | Actual permission level of a user trying to access the repository. |
| permitted | Whether a user is permitted or not. |