tspascoal/get-user-teams-membership
Get a user teams membership in an organization
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| organization | Organization name (default is repo owner) | no | ${{ github.repository_owner }} |
| username | Username to get teams or check team membership | yes | — |
| team | If you specify a team name (or slug when use_team_slug is true) it will output if the user is a member of that team (case insensitive). If you specificy multiple teams (CSV) true will be returned if at least member of one of the teams. Note: when use_team_slug is true, provide slugs here instead of display names. | no | "" |
| use_team_slug | If set to true, the action will use team slugs instead of team names. When enabled, the team input should be provided as slugs and the teams output will also contain slugs rather than display names. This is useful if you have teams with the same display name but different parent teams. (default: false) | no | false |
| GITHUB_TOKEN | GITHUB_TOKEN | yes | — |
Outputs
| name | description |
|---|---|
| teams | The list of teams the user belongs (array) |
| isTeamMember | String value ("true" or "false") indicating if user belongs to team. Note: outputs are always strings, so compare against string values (e.g. steps.checkUserMember.outputs.isTeamMember == "true"). |