Skip to content

Commit

Permalink
chore: fix permission step validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Aug 8, 2023
1 parent 25d9dbc commit 6506db7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ jobs:

steps:
# Check permissions
- name: Checking out for permissions
- uses: tspascoal/get-user-teams-membership@v2
id: permissions
uses: kapost/kap-gh-team@v1
with:
access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: exadel-inc
team: esl-core-maintainers
user: ${{ github.actor }}
username: ${{ github.actor }}
team: 'ESL Core Maintainers'
GITHUB_TOKEN: ${{ secrets.PERMISSION_CHECK_TOKEN }}

- name: Deny access if not a member of team
if: ${{ steps.permissions.outputs.success == 'false' }}
- if: ${{ steps.permissions.outputs.isTeamMember == 'false' }}
run: exit 1

# Start workflow
Expand Down

0 comments on commit 6506db7

Please sign in to comment.