Skip to content

Commit c27bbfc

Browse files
committed
check repo permission
Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
1 parent e76ae6c commit c27bbfc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/e2e.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
if: >
3232
github.event_name == 'schedule' ||
3333
github.event_name == 'workflow_dispatch' ||
34-
(github.event_name == 'pull_request_target' && contains(fromJSON('["zakisk", "infernus01", "savitaashture", "chmouel", "vdemeester", "enarha", "aThorp96", "waveywaves", "dependabot[bot]"]'), github.event.pull_request.user.login))
34+
github.event_name == 'pull_request_target'
3535
concurrency:
3636
group: ${{ github.workflow }}-${{ matrix.provider }}-${{ github.event.pull_request.number || github.ref_name }}
3737
cancel-in-progress: true
@@ -68,6 +68,12 @@ jobs:
6868
TEST_BITBUCKET_SERVER_USER: pipelines
6969
TEST_BITBUCKET_SERVER_E2E_REPOSITORY: PAC/pac-e2e-tests
7070
steps:
71+
- name: "Check if user has write access"
72+
uses: "lannonbr/repo-permission-check-action@2.0.0"
73+
with:
74+
permission: "write"
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7177
- uses: actions/checkout@v4
7278
with:
7379
ref: ${{ inputs.target_ref || github.event.pull_request.head.sha || github.sha }}

0 commit comments

Comments
 (0)