step-security/get-user-teams-membership

Get a user teams membership in an organization

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
organizationOrganization name (default is repo owner)no${{ github.repository_owner }}
usernameUsername to get teams or check team membershipyes
teamIf 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_slugIf 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)nofalse
GITHUB_TOKENGITHUB_TOKENyes
namedescription
teamsThe list of teams the user belongs (array)
isTeamMemberString 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").