From c49accd03fbb186a4222c09144df12f723baf331 Mon Sep 17 00:00:00 2001 From: Jakob Fritz Date: Mon, 8 Jan 2024 16:37:10 +0100 Subject: [PATCH] Another attempt to get the action to work --- .github/workflows/gitlab_ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gitlab_ci.yml b/.github/workflows/gitlab_ci.yml index b36f1ddd16..693922f9c7 100644 --- a/.github/workflows/gitlab_ci.yml +++ b/.github/workflows/gitlab_ci.yml @@ -16,12 +16,14 @@ jobs: if: github.event_name == 'pull_request_target' uses: actions-cool/check-user-permission@v2 with: - username: ${{ github.triggering_actor }} - require: write + username: github.triggering_actor + require: 'write' + token: ${{ secrets.GITHUB_TOKEN }} - name: Interpret the queried result if: github.event_name == 'pull_request_target' run: | - echo $steps.query_permission_triggering_actor.outputs.require-result + echo "Current permission level is ${{ steps.query_permission_triggering_actor.outputs.user-permission }}" + echo "Job originally triggered by ${{ github.actor }}" exit !steps.query_permission_triggering_actor.outputs.require-result - name: Pass if workflow from push or schedule if: >-