From 8a2e68c7a9e1a3c8547b30e75ac483d4b075b303 Mon Sep 17 00:00:00 2001 From: Zied Elouaer <86047070+zied-elouaer@users.noreply.github.com> Date: Mon, 6 May 2024 12:40:23 +0200 Subject: [PATCH] Revert "chore(ci): allow accepting runs from a fork" --- .github/workflows/tests.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a227c92..e64f479 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,10 +4,8 @@ on: push: branches: - main + - master pull_request: - types: [opened, synchronize] - pull_request_target: - types: [opened, synchronize] concurrency: group: terraform-google-artifact-registry-repository @@ -76,30 +74,12 @@ jobs: runs-on: ubuntu-latest name: Unit Tests steps: - - name: Get User Permission - id: checkAccess - uses: actions-cool/check-user-permission@956b2e73cdfe3bcb819bb7225e490cb3b18fd76e # v2.2.1 - 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 "${{ 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 - - name: Checkout # for security reasons we pin commit ids and not tags. # actions/checkout@v3.0.2 -> 2541b1294d2704b0964813337f33b291d3f8596b uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha }} # - name: Setup SSH to Private Modules # # for security reasons we pin commit ids and not tags.