44smkn/Check if user belongs to teams

Check if given user belongs to given teams in an organization

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Aug 11, 2023
License
MIT
Runtime
Deprecated runtime

Pinned Snippet

workflow.ymlSHA-pinned
uses: 44smkn/check-teams-user-belongs@3a60b16b6a4a988d8f340bbf31d9d76c1cfa62aa # v1.1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
usernameUsername to check belongsyes
teamsTeams that you want to check given user belongsyes
tokenGitHub token to retrieve membership information.yes
organizationOrganization name to which the team belongs. Since there is a default, this is typically not supplied by the userno${{ github.repository_owner }}
failIfUserNotBelongsIf given user does not belong to given teams, set fail status to this actionnofalse
namedescription
userBelongsToGivenTeamsWhether given user belongs to given teams in an organization