Skip to content

Commit 6506db7

Browse files
committed
chore: fix permission step validation
1 parent 25d9dbc commit 6506db7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/release.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@ jobs:
1818

1919
steps:
2020
# Check permissions
21-
- name: Checking out for permissions
21+
- uses: tspascoal/get-user-teams-membership@v2
2222
id: permissions
23-
uses: kapost/kap-gh-team@v1
2423
with:
25-
access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
26-
organization: exadel-inc
27-
team: esl-core-maintainers
28-
user: ${{ github.actor }}
24+
username: ${{ github.actor }}
25+
team: 'ESL Core Maintainers'
26+
GITHUB_TOKEN: ${{ secrets.PERMISSION_CHECK_TOKEN }}
2927

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

3431
# Start workflow

0 commit comments

Comments
 (0)