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: