Skip to content

Commit b182c48

Browse files
committed
chore: use GH_TOKEN secert in permission check step
when membership of an allowed user is check in permission check step, actions default token GITHUB_TOKEN is unable to check permission because it doesn't have org:read permission so this commit uses GH_TOKEN from secerts to make it happen. Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
1 parent 421f96c commit b182c48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
if: github.event_name == 'pull_request_target'
136136
uses: pipelines-as-code/ok-to-test@25881c6245695bd81a22df9f2ebdd9569b420581 # v1
137137
with:
138+
github-token: ${{ secrets.GH_TOKEN }}
138139
team-slugs: ${{ env.TARGET_TEAM_SLUGS }}
139140

140141
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6

0 commit comments

Comments
 (0)