Skip to content

Commit

Permalink
Merge branch 'main' into ewt-389-commercial-vrp-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dili91 authored Dec 21, 2023
2 parents 553f3ff + c7cabf0 commit bd68303
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/workflow-pr-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@ jobs:
if: ${{ ! startsWith(github.event.pull_request.head.repo.full_name, 'TrueLayer/truelayer-java') }}
runs-on: ubuntu-latest
steps:
- name: Check access
if: ${{ github.event.pull_request.author_association != 'COLLABORATOR' && github.event.pull_request.author_association != 'OWNER' }}
- name: Get User Permission
id: checkAccess
uses: actions-cool/check-user-permission@v2
with:
require: write
username: ${{ github.triggering_actor }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check User Permission
if: steps.checkAccess.outputs.require-result == 'false'
run: |
echo "Event not triggered by a collaborator."
echo "${{ github.triggering_actor }} does not have permissions on this repo."
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
echo "Job originally triggered by ${{ github.actor }}"
exit 1
build-test-coverage:
needs: check-access
Expand Down

0 comments on commit bd68303

Please sign in to comment.