diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index cfe4301..cef98e7 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -75,6 +75,11 @@ jobs: pull-requests: write contents: read steps: + - name: Verify user + uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1" + with: + username: ${{github.event.pull_request.user.login}} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Checkout repository uses: actions/checkout@v4 with: diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 44cc137..9d6385c 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -69,6 +69,11 @@ jobs: statuses: write contents: read steps: + - name: Verify user + uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1" + with: + username: ${{github.event.pull_request.user.login}} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - name: Checkout repository uses: actions/checkout@v4