From 367b6521b8a274d4bec6a80086af38ee3d9dc21e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Ollivier?= Date: Tue, 14 Jan 2025 19:28:34 +0100 Subject: [PATCH] Switch to pull_request_target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Ollivier --- .github/workflows/actions.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 04907d7cc..b61a4f66f 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -6,7 +6,7 @@ on: - '!**.md' - '!docs/*' - '!doc-lint/*' - pull_request: + pull_request_target: paths: - '**' - '!**.md' @@ -24,6 +24,14 @@ jobs: outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: + - 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: Checkout code uses: actions/checkout@v4 with: